mapRouteResult
Signature
def mapRouteResult(f: RouteResult โ RouteResult): Directive0
Description
Changes the message the inner route sends to the responder.
The mapRouteResult
directive is used as a building block for Custom Directives to transform the RouteResult coming back from the inner route.
See Result Transformation Directives for similar directives.
Example
@@snip BasicDirectivesExamplesSpec.scala { #0mapRouteResult }