Go to the latest version of this document.

# ``twisted`.`web`.`server`.`GzipEncoderFactory``

class documentation

`class GzipEncoderFactory: (source)`

Implements interfaces: `twisted.web.iweb._IRequestEncoderFactory`

View In Hierarchy

Present Since
12.3

Method | `encoderForRequest` | Check the headers if the client accepts gzip encoding, and encodes the request if so.
Class Variable | `compressLevel` | The compression level used by the compressor, default to 9 (highest).
Class Variable | `_gzipCheckRegex` | Undocumented

def encoderForRequest(self, request): (source)
from `twisted.web.iweb._IRequestEncoderFactory`

Check the headers if the client accepts gzip encoding, and encodes the request if so.

compressLevel: `int` = (source)

The compression level used by the compressor, default to 9 (highest).

_gzipCheckRegex = (source)

Undocumented