* akka http javadsl - add debugging directive test * fixes line breaks * add additional examples on PathDirectives * link documentation to test examples * include example on redirectToNoTrailingSlashIfPresent and redirectToTrailingSlashIfMissing * include example on redirectToNoTrailingSlashIfPresent and redirectToTrailingSlashIfMissing
18 lines
610 B
ReStructuredText
18 lines
610 B
ReStructuredText
.. _-pathEnd-java-:
|
|
|
|
pathEnd
|
|
=======
|
|
|
|
Description
|
|
-----------
|
|
Only passes the request to its inner route if the unmatched path of the ``RequestContext`` is empty, i.e. the request
|
|
path has been fully matched by a higher-level :ref:`-path-java-` or :ref:`-pathPrefix-java-` directive.
|
|
|
|
|
|
This directive is a simple alias for ``rawPathPrefix(PathEnd)`` and is mostly used on an
|
|
inner-level to discriminate "path already fully matched" from other alternatives (see the example below).
|
|
|
|
|
|
Example
|
|
-------
|
|
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/PathDirectivesExamplesTest.java#path-end
|