pekko/akka-docs/rst/java/http/routing-dsl/directives/cookie-directives/setCookie.rst

16 lines
368 B
ReStructuredText

.. _-setCookie-java-:
setCookie
=========
Description
-----------
Adds a header to the response to request the update of the cookie with the given name on the client.
Use the :ref:`-deleteCookie-java-` directive to delete a cookie.
Example
-------
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/CookieDirectivesExamplesTest.java#setCookie