26 lines
714 B
ReStructuredText
26 lines
714 B
ReStructuredText
.. _-mapResponseHeaders-:
|
|
|
|
mapResponseHeaders
|
|
======================
|
|
|
|
Changes the list of response headers that was generated by the inner route.
|
|
|
|
Signature
|
|
---------
|
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/server/directives/BasicDirectives.scala
|
|
: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
|
|
-------
|
|
|
|
.. includecode2:: ../../../code/docs/http/server/directives/BasicDirectivesExamplesSpec.scala
|
|
:snippet: mapResponseHeaders
|