16 lines
368 B
ReStructuredText
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
|