This file is indexed.

/usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Compression.html is in libghc-happstack-server-doc 7.4.6.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Happstack.Server.Internal.Compression</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Happstack-Server-Internal-Compression.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Happstack-Server-Internal-Compression.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">happstack-server-7.4.6.2: Web related tools and services.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Happstack.Server.Internal.Compression</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Filter for compressing the <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> body.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:compressedResponseFilter">compressedResponseFilter</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) =&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:compressedResponseFilter-39-">compressedResponseFilter'</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) =&gt; [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ())] -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:compressWithFilter">compressWithFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ()</li><li class="src short"><a href="#v:gzipFilter">gzipFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ()</li><li class="src short"><a href="#v:deflateFilter">deflateFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ()</li><li class="src short"><a href="#v:identityFilter">identityFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ()</li><li class="src short"><a href="#v:starFilter">starFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ()</li><li class="src short"><a href="#v:encodings">encodings</a> :: <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> st [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a>)]</li><li class="src short"><a href="#v:standardEncodingHandlers">standardEncodingHandlers</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ())]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compressedResponseFilter" class="def">compressedResponseFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#compressedResponseFilter" class="link">Source</a> <a href="#v:compressedResponseFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>name of the encoding chosen</p></td></tr></table></div><div class="doc"><p>reads the <code>Accept-Encoding</code> header.  Then, if possible
 will compress the response body with methods <code>gzip</code> or <code>deflate</code>.</p><p>This function uses <code><a href="Happstack-Server-Internal-Compression.html#v:standardEncodingHandlers">standardEncodingHandlers</a></code>. If you want to
 provide alternative handers (perhaps to change compression levels),
 see <code><a href="Happstack-Server-Internal-Compression.html#v:compressedResponseFilter-39-">compressedResponseFilter'</a></code></p><pre>main =
  simpleHTTP nullConf $
     do str &lt;- compressedResponseFilter
        return $ toResponse (&quot;This response compressed using: &quot; ++ str)</pre></div></div><div class="top"><p class="src"><a id="v:compressedResponseFilter-39-" class="def">compressedResponseFilter'</a> <a href="src/Happstack-Server-Internal-Compression.html#compressedResponseFilter%27" class="link">Source</a> <a href="#v:compressedResponseFilter-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ())]</td><td class="doc"><p>compression filter assoc list</p></td></tr><tr><td class="src">-&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>name of the encoding chosen</p></td></tr></table></div><div class="doc"><p>reads the <code>Accept-Encoding</code> header.  Then, if possible
 will compress the response body using one of the supplied filters.</p><p>A filter function takes two arguments. The first is a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> with
 the value to be used as the 'Content-Encoding' header. The second
 is <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></code> which indicates if the compression filter is allowed to
 fallback to <code>identity</code>.</p><p>This is important if the resource being sent using sendfile, since
 sendfile does not provide a compression option. If <code>identity</code> is
 allowed, then the file can be sent uncompressed using sendfile. But
 if <code>identity</code> is not allowed, then the filter will need to return
 error 406.</p><p>You should probably always include the <code>identity</code> and <code>*</code> encodings
 as acceptable.</p><pre>myFilters :: (FilterMonad Response m) =&gt; [(String, String -&gt; Bool -&gt; m ()]
myFilters = [ (&quot;gzip&quot;    , gzipFilter)
            , (&quot;identity&quot;, identityFilter)
            , (&quot;*&quot;       , starFilter)
            ]

main =
  simpleHTTP nullConf $
     do let filters =
str &lt;- compressedResponseFilter'
        return $ toResponse (&quot;This response compressed using: &quot; ++ str)</pre></div></div><div class="top"><p class="src"><a id="v:compressWithFilter" class="def">compressWithFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#compressWithFilter" class="link">Source</a> <a href="#v:compressWithFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</td><td class="doc"><p>function to compress the body</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>encoding to use for Content-Encoding header</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>fallback to identity for SendFile</p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Ignore the <code>Accept-Encoding</code> header in the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> and attempt to compress the body of the response using the supplied compressor.</p><p>We can not compress files being transfered using <code><a href="Happstack-Server-Internal-Types.html#v:SendFile">SendFile</a></code>. If
 <code>identity</code> is an allowed encoding, then just return the <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code>
 unmodified. Otherwise we return <code>406 Not Acceptable</code>.</p><p>see also: <code><a href="Happstack-Server-Internal-Compression.html#v:gzipFilter">gzipFilter</a></code>, <code><a href="Happstack-Server-Internal-Compression.html#v:deflateFilter">deflateFilter</a></code>, <code><a href="Happstack-Server-Internal-Compression.html#v:identityFilter">identityFilter</a></code>, <code><a href="Happstack-Server-Internal-Compression.html#v:starFilter">starFilter</a></code>, <code><a href="Happstack-Server-Internal-Compression.html#v:compressedResponseFilter-39-">compressedResponseFilter'</a></code></p></div></div><div class="top"><p class="src"><a id="v:gzipFilter" class="def">gzipFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#gzipFilter" class="link">Source</a> <a href="#v:gzipFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>encoding to use for Content-Encoding header</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>fallback to identity for SendFile</p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Ignore the <code>Accept-Encoding</code> header in the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> and attempt to compress the body of the response with <code>gzip</code>.</p><p>calls <code><a href="Happstack-Server-Internal-Compression.html#v:compressWithFilter">compressWithFilter</a></code> using <code><a href="file:///usr/share/doc/libghc-zlib-doc/html/Codec-Compression-GZip.html#v:compress">compress</a></code>.</p><p>see also: <code><a href="Happstack-Server-Internal-Compression.html#v:compressedResponseFilter">compressedResponseFilter</a></code></p></div></div><div class="top"><p class="src"><a id="v:deflateFilter" class="def">deflateFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#deflateFilter" class="link">Source</a> <a href="#v:deflateFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>encoding to use for Content-Encoding header</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>fallback to identity for SendFile</p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Ignore the <code>Accept-Encoding</code> header in the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> and attempt compress the body of the response with zlib's
 <code>deflate</code> method</p><p>calls <code><a href="Happstack-Server-Internal-Compression.html#v:compressWithFilter">compressWithFilter</a></code> using <code><a href="file:///usr/share/doc/libghc-zlib-doc/html/Codec-Compression-Zlib.html#v:compress">compress</a></code>.</p><p>see also: <code><a href="Happstack-Server-Internal-Compression.html#v:compressedResponseFilter">compressedResponseFilter</a></code></p></div></div><div class="top"><p class="src"><a id="v:identityFilter" class="def">identityFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#identityFilter" class="link">Source</a> <a href="#v:identityFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>encoding to use for Content-Encoding header</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>fallback to identity for SendFile (irrelavant for this filter)</p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>compression filter for the identity encoding (aka, do nothing)</p><p>see also: <code><a href="Happstack-Server-Internal-Compression.html#v:compressedResponseFilter">compressedResponseFilter</a></code></p></div></div><div class="top"><p class="src"><a id="v:starFilter" class="def">starFilter</a> <a href="src/Happstack-Server-Internal-Compression.html#starFilter" class="link">Source</a> <a href="#v:starFilter" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>encoding to use for Content-Encoding header</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>fallback to identity for SendFile (irrelavant for this filter)</p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>compression filter for the * encoding</p><p>This filter always fails.</p></div></div><div class="top"><p class="src"><a id="v:encodings" class="def">encodings</a> :: <a href="file:///usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> st [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a>)] <a href="src/Happstack-Server-Internal-Compression.html#encodings" class="link">Source</a> <a href="#v:encodings" class="selflink">#</a></p><div class="doc"><p>a parser for the Accept-Encoding header</p></div></div><div class="top"><p class="src"><a id="v:standardEncodingHandlers" class="def">standardEncodingHandlers</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m =&gt; [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; m ())] <a href="src/Happstack-Server-Internal-Compression.html#standardEncodingHandlers" class="link">Source</a> <a href="#v:standardEncodingHandlers" class="selflink">#</a></p><div class="doc"><p>an assoc list of encodings and their corresponding compression
 functions.</p><p>e.g.</p><pre>[(&quot;gzip&quot;, gzipFilter), (&quot;identity&quot;, identityFilter), (&quot;*&quot;,starFilter)]</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>