pekko/akka-docs/rst/scala/http/routing-dsl/directives/basic-directives/mapUnmatchedPath.rst
2016-01-14 00:31:03 +01:00

25 lines
736 B
ReStructuredText

.. _-mapUnmatchedPath-:
mapUnmatchedPath
================
Signature
---------
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
:snippet: mapUnmatchedPath
Description
-----------
Transforms the unmatchedPath field of the request context for inner routes.
The ``mapUnmatchedPath`` directive is used as a building block for writing :ref:`Custom Directives`. You can use it
for implementing custom path matching directives.
Use ``extractUnmatchedPath`` for extracting the current value of the unmatched path.
Example
-------
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
:snippet: mapUnmatchedPath-example