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

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

Network.Wai.Middleware.Gzip

Description

Automatic gzip compression of responses.

Synopsis

Documentation

gzip :: GzipSettings -> MiddlewareSource

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.