19 lines
686 B
ReStructuredText
19 lines
686 B
ReStructuredText
|
|
.. _-getFromResource-java-:
|
||
|
|
|
||
|
|
getFromResource
|
||
|
|
===============
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
|
||
|
|
Completes ``GET`` requests with the content of the given classpath resource.
|
||
|
|
|
||
|
|
For details refer to :ref:`-getFromFile-java-` which works the same way but obtaining the file from the filesystem
|
||
|
|
instead of the applications classpath.
|
||
|
|
|
||
|
|
Note that it's not required to wrap this directive with ``get`` as this directive will only respond to ``GET`` requests.
|
||
|
|
|
||
|
|
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>`_.
|