hack-middleware-gzip-0.0.0.1: Automatic gzip compression of responses. (deprecated)

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

Hack.Middleware.Gzip

Description

Automatic gzip compression of responses.

Synopsis

Documentation

gzip :: 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.
  • Add Content-Length.
  • I read somewhere that "the beast" (MSIE) can't support compression for Javascript files..