2014-12-18 09:25:33 +01:00
|
|
|
.. _-responseEncodingAccepted-:
|
|
|
|
|
|
|
|
|
|
responseEncodingAccepted
|
|
|
|
|
========================
|
|
|
|
|
|
|
|
|
|
Passes the request to the inner route if the request accepts the argument encoding. Otherwise,
|
|
|
|
|
rejects the request with an ``UnacceptedResponseEncodingRejection(encoding)``.
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-05-11 23:05:18 +02:00
|
|
|
.. includecode2:: /../../akka-http-scala/src/main/scala/akka/http/scaladsl/server/directives/CodingDirectives.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: responseEncodingAccepted
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
This directive is the building block for ``encodeResponse`` to reject unsupported encodings.
|