2014-12-18 09:25:33 +01:00
.. _-responseEncodingAccepted-:
responseEncodingAccepted
========================
Signature
---------
2015-06-19 15:35:24 +02:00
.. includecode2 :: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/CodingDirectives.scala
2014-12-18 09:25:33 +01:00
:snippet: responseEncodingAccepted
Description
-----------
2015-10-14 16:33:51 +02:00
Passes the request to the inner route if the request accepts the argument encoding. Otherwise, rejects the request with an `` UnacceptedResponseEncodingRejection(encoding) `` .
Example
-------
.. includecode2 :: ../../../../code/docs/http/scaladsl/server/directives/CodingDirectivesExamplesSpec.scala
:snippet: responseEncodingAccepted