13 lines
315 B
ReStructuredText
13 lines
315 B
ReStructuredText
.. _-extractHost-java-:
|
|
|
|
RequestVals.host
|
|
================
|
|
|
|
Extract the hostname part of the ``Host`` request header and expose it as a ``String`` extraction
|
|
to its inner route.
|
|
|
|
|
|
Example
|
|
-------
|
|
|
|
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/HostDirectivesExamplesTest.java#extractHostname
|