2014-12-18 09:25:33 +01:00
|
|
|
.. _-deleteCookie-:
|
|
|
|
|
|
|
|
|
|
deleteCookie
|
|
|
|
|
============
|
|
|
|
|
|
|
|
|
|
Adds a header to the response to request the removal of the cookie with the given name on the client.
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-05-11 23:05:18 +02:00
|
|
|
.. includecode2:: /../../akka-http-scala/src/main/scala/akka/http/scaladsl/server/directives/CookieDirectives.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: deleteCookie
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Use the :ref:`-setCookie-` directive to update a cookie.
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-05-11 23:05:18 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/CookieDirectivesExamplesSpec.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: deleteCookie
|