.. _-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