2014-12-18 09:25:33 +01:00
|
|
|
.. _-mapInnerRoute-:
|
|
|
|
|
|
|
|
|
|
mapInnerRoute
|
|
|
|
|
=============
|
|
|
|
|
|
|
|
|
|
Changes the execution model of the inner route by wrapping it with arbitrary logic.
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: mapInnerRoute
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
The ``mapInnerRoute`` directive is used as a building block for :ref:`Custom Directives` to replace the inner route
|
|
|
|
|
with any other route. Usually, the returned route wraps the original one with custom execution logic.
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-05-11 23:05:18 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: mapInnerRoute
|