paste.gzipper – Gzip-compress responses

WSGI middleware

Gzip-encodes the response.

Module Contents

class paste.gzipper.middleware(application, compress_level=6)
paste.gzipper.make_gzip_middleware(app, global_conf, compress_level=6)

Wrap the middleware, so that it applies gzipping to a response when it is supported by the browser and the content is of type text/* or application/*