Portability | portable |
---|---|
Stability | Unstable |
Maintainer | Michael Snoyman <michael@snoyman.com> |
Automatic gzip compression of responses.
- gzip :: Bool -> Middleware
- gzip' :: GzipSettings -> Middleware
- data GzipSettings
- gzipFiles :: GzipSettings -> GzipFiles
- data GzipFiles
- def :: Default a => a
- defaultCheckMime :: ByteString -> Bool
Documentation
:: Bool | should we gzip files? |
-> Middleware |
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.