decodeRequest

Signature

def decodeRequest: Directive0

Description

Decompresses the incoming request if it is gzip or deflate compressed. Uncompressed requests are passed through untouched. If the request encoded with another encoding the request is rejected with an UnsupportedRequestEncodingRejection.

Example

@@snip CodingDirectivesExamplesSpec.scala { #“decodeRequest” }

The source code for this page can be found here.