happstack-server-0.5.0.3: Web related tools and services.

Happstack.Server.Parts

Synopsis

Documentation

compressedResponseFilter :: (FilterMonad Response m, MonadPlus m, WebMonad Response m, ServerMonad m) => m StringSource

reads the "Accept-Encoding" header. Then, if possible will compress the response body with methods gzip or deflate

Returns the name of the coding chosen

gzipFilter :: FilterMonad Response m => m ()Source

compresses the body of the response with gzip. does not set any headers.

deflateFilter :: FilterMonad Response m => m ()Source

compresses the body of the response with zlib's deflate method does not set any headers.

encodings :: GenParser Char st [([Char], Maybe Double)]Source

unsupported: a parser for the Accept-Encoding header