=doc,htp #20466 Include Respond Directives Examples for Java. (#20595)

* Include Respond Directives Examples for Java.

* Include license on RespondWithDirectivesExamplesTest.
This commit is contained in:
Felipe Fernández 2016-05-24 09:54:44 +01:00 committed by Konrad Malawski
parent 06c7467a0e
commit d9c7f9b7f0
6 changed files with 141 additions and 6 deletions

View file

@ -18,4 +18,4 @@ See also :ref:`-respondWithDefaultHeaders-java-` if you'd like to add more than
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/RespondWithDirectivesExamplesTest.java#respondWithDefaultHeader

View file

@ -30,6 +30,6 @@ is shown in the example below, however it allows including multiple default head
The semantics remain the same however, as explained by the following 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/RespondWithDirectivesExamplesTest.java#respondWithDefaultHeaders
See the :ref:`-respondWithDefaultHeader-java-` directive for an example with only one header.

View file

@ -14,4 +14,4 @@ See also :ref:`-respondWithHeaders-java-` if you'd like to add more than one hea
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/RespondWithDirectivesExamplesTest.java#respondWithHeader

View file

@ -15,4 +15,4 @@ See also :ref:`-respondWithHeader-java-` if you'd like to add just a single head
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/RespondWithDirectivesExamplesTest.java#respondWithHeaders