wai-middleware-gunzip-0.0.2: WAI middleware to unzip request bodies

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Gunzip

Synopsis

Documentation

gunzip :: Middleware Source

This WAI middleware transparently unzips HTTP request bodies if a request header Content-Encoding: gzip is found.

Please note that the requestBodyLength is set to ChunkedBody if the body is unzipped since we do not know the uncompressed length yet.