wai-extra-3.0.15: Provides some basic WAI handlers and middleware.

CopyrightMichael Snoyman
LicenseBSD3
MaintainerMichael Snoyman <michael@snoyman.com>
StabilityUnstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Gzip

Description

Automatic gzip compression of responses.

Synopsis

Documentation

gzip :: GzipSettings -> Middleware Source

Use gzip to compress the body of the response.

Analyzes the "Accept-Encoding" header from the client to determine if gzip is supported.

Possible future enhancements:

  • Only compress if the response is above a certain size.

def :: Default a => a

The default value for this type.