2015-05-11 23:05:18 +02:00
|
|
|
.. _-mapRouteResultWithPF-:
|
|
|
|
|
|
|
|
|
|
mapRouteResultWithPF
|
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
|
2015-05-11 23:05:18 +02:00
|
|
|
:snippet: mapRouteResultWithPF
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
2015-10-09 15:19:36 +02:00
|
|
|
Asynchronous variant of :ref:`mapRouteResultPF`.
|
|
|
|
|
|
|
|
|
|
Changes the message the inner route sends to the responder.
|
|
|
|
|
|
|
|
|
|
The ``mapRouteResult`` directive is used as a building block for :ref:`Custom Directives` to transform the
|
|
|
|
|
:ref:`RouteResult` coming back from the inner route.
|
|
|
|
|
|
|
|
|
|
See :ref:`Result Transformation Directives` for similar directives.
|
2015-05-11 23:05:18 +02:00
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-09-16 23:50:35 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
|
2015-10-09 15:19:36 +02:00
|
|
|
:snippet: mapRouteResultWithPF-0
|