17 lines
565 B
ReStructuredText
17 lines
565 B
ReStructuredText
|
|
.. _-cookie-java-:
|
||
|
|
|
||
|
|
cookie
|
||
|
|
======
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
Extracts a cookie with a given name from a request or otherwise rejects the request with a ``MissingCookieRejection`` if
|
||
|
|
the cookie is missing.
|
||
|
|
|
||
|
|
Use the :ref:`-optionalCookie-java-` directive instead if you want to support missing cookies in your inner route.
|
||
|
|
|
||
|
|
|
||
|
|
Example
|
||
|
|
-------
|
||
|
|
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: `write example snippets for Akka HTTP Java DSL #20466 <https://github.com/akka/akka/issues/20466>`_.
|