paste.gzipper – Gzip-compress responses — Paste v1.7.5 documentation

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »

# `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/*`

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »