class documentation

class twisted.web.server.GzipEncoderFactory: (source)

Implements interfaces: twisted.web.iweb._IRequestEncoderFactory

View In Hierarchy

Present Since12.3
Class Variable compressLevel The compression level used by the compressor, default to 9 (highest).
Method encoderForRequest Check the headers if the client accepts gzip encoding, and encodes the request if so.
Class Variable _gzipCheckRegex Undocumented
compressLevel = (source)
The compression level used by the compressor, default to 9 (highest).
(type: int)
_gzipCheckRegex = (source)

Undocumented

def encoderForRequest(self, request): (source)

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

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.