pekko/akka-docs/rst/java/http/routing-dsl/directives/scheme-directives/extractScheme.rst
Fabian Gutierrez 43c09a4b63 Add scheme directive example in javadsl (#20586)
* add scheme directive test

* link documentation to the scheme directive
2016-05-23 12:49:54 +02:00

15 lines
412 B
ReStructuredText

.. _-extractScheme-java-:
extractScheme
=============
Description
-----------
Extracts the Uri scheme (i.e. "``http``", "``https``", etc.) for an incoming request.
For rejecting a request if it doesn't match a specified scheme name, see the :ref:`-scheme-java-` directive.
Example
-------
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/SchemeDirectivesExamplesTest.java#extractScheme