16 lines
492 B
ReStructuredText
16 lines
492 B
ReStructuredText
|
|
.. _-optionalCookie-java-:
|
||
|
|
|
||
|
|
optionalCookie
|
||
|
|
==============
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
Extracts an optional cookie with a given name from a request.
|
||
|
|
|
||
|
|
Use the :ref:`-cookie-java-` directive instead if the inner route does not handle a missing cookie.
|
||
|
|
|
||
|
|
|
||
|
|
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>`_.
|