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