Wraps its inner Route with response compression, using the specified encoders in the given order of preference.
Wraps its inner Route with response compression, using the specified encoders in the given order of preference. If no encoders are specifically given Gzip, Deflate and NoEncoding are used in this order, depending on what the client accepts.
Wraps its inner Route with response compression if and only if the client
specifically requests compression with an Accept-Encoding
header.
Wraps its inner Route with response compression if and only if the client
specifically requests compression with an Accept-Encoding
header.
Wraps its inner Route with decoding support using the given Decoder.
Wraps its inner Route with decoding support using the given Decoder.
Decompresses the incoming request if it is encoded with one of the given encoders.
Decompresses the incoming request if it is encoded with one of the given
encoders. If the request encoding doesn't match one of the given encoders
the request is rejected with an UnsupportedRequestEncodingRejection
.
Decompresses the incoming request if it is GZip or Deflate encoded.
Decompresses the incoming request if it is GZip or Deflate encoded. Uncompressed requests are passed on to the inner route unchanged.
Wraps its inner Route with encoding support using the given Encoder.
Wraps its inner Route with encoding support using the given Encoder.
Rejects the request with an UnsupportedRequestEncodingRejection if its encoding doesn't match the given one.
Rejects the request with an UnsupportedRequestEncodingRejection if its encoding doesn't match the given one.
Rejects the request with an UnacceptedResponseEncodingRejection if the given encoding is not accepted for the response.
Rejects the request with an UnacceptedResponseEncodingRejection if the given encoding is not accepted for the response.