pekko/akka-docs/rst/scala/http/routing-dsl/directives/cookie-directives/deleteCookie.rst
2016-01-14 00:31:03 +01:00

22 lines
541 B
ReStructuredText

.. _-deleteCookie-:
deleteCookie
============
Signature
---------
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/CookieDirectives.scala
:snippet: deleteCookie
Description
-----------
Adds a header to the response to request the removal of the cookie with the given name on the client.
Use the :ref:`-setCookie-` directive to update a cookie.
Example
-------
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/CookieDirectivesExamplesSpec.scala
:snippet: deleteCookie