Add scheme directive example in javadsl (#20586)

* add scheme directive test

* link documentation to the scheme directive
This commit is contained in:
Fabian Gutierrez 2016-05-23 12:49:54 +02:00 committed by Konrad Malawski
parent 03395d5739
commit 43c09a4b63
3 changed files with 62 additions and 2 deletions

View file

@ -11,4 +11,5 @@ For rejecting a request if it doesn't match a specified scheme name, see the :re
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>`_.
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/SchemeDirectivesExamplesTest.java#extractScheme

View file

@ -18,4 +18,5 @@ For simply extracting the scheme name, see the :ref:`-extractScheme-java-` direc
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>`_.
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/SchemeDirectivesExamplesTest.java#scheme