2014-12-18 09:25:33 +01:00
|
|
|
.. _-mapResponseHeaders-:
|
|
|
|
|
|
|
|
|
|
mapResponseHeaders
|
2015-05-11 23:05:18 +02:00
|
|
|
==================
|
2014-12-18 09:25:33 +01:00
|
|
|
|
|
|
|
|
Changes the list of response headers that was generated by the inner route.
|
|
|
|
|
|
|
|
|
|
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: mapResponseHeaders
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
The ``mapResponseHeaders`` directive is used as a building block for :ref:`Custom Directives` to transform the list of
|
|
|
|
|
response headers that was generated by the inner route.
|
|
|
|
|
|
|
|
|
|
See :ref:`Response Transforming Directives` for similar directives.
|
|
|
|
|
|
|
|
|
|
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: mapResponseHeaders
|