20 lines
747 B
ReStructuredText
20 lines
747 B
ReStructuredText
|
|
.. _-extractRequestContext-java-:
|
||
|
|
|
||
|
|
extractRequestContext
|
||
|
|
=====================
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
|
||
|
|
Extracts the request's underlying :class:`RequestContext`.
|
||
|
|
|
||
|
|
This directive is used as a building block for most of the other directives,
|
||
|
|
which extract the context and by inspecting some of it's values can decide
|
||
|
|
what to do with the request - for example provide a value, or reject the request.
|
||
|
|
|
||
|
|
See also :ref:`-extractRequest-java-` if only interested in the :class:`HttpRequest` instance itself.
|
||
|
|
|
||
|
|
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>`_.
|