28 lines
No EOL
743 B
ReStructuredText
28 lines
No EOL
743 B
ReStructuredText
.. _-pathEnd-:
|
|
|
|
pathEnd
|
|
=======
|
|
|
|
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-` or :ref:`-pathPrefix-` directive.
|
|
|
|
|
|
Signature
|
|
---------
|
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/server/directives/PathDirectives.scala
|
|
:snippet: pathEnd
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
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
|
|
-------
|
|
|
|
.. includecode2:: ../../../code/docs/http/server/directives/PathDirectivesExamplesSpec.scala
|
|
:snippet: pathEnd- |