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

24 lines
637 B
ReStructuredText

.. _-mapResponseEntity-:
mapResponseEntity
=================
Signature
---------
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
:snippet: mapResponseEntity
Description
-----------
The ``mapResponseEntity`` directive is used as a building block for :ref:`Custom Directives` to transform a
response entity that was generated by the inner route.
See :ref:`Response Transforming Directives` for similar directives.
Example
-------
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
:snippet: mapResponseEntity