Implements interfaces: twisted.web.iweb._IRequestEncoder

An encoder which supports gzip.

Present Since12.3
Method __init__ Undocumented
Method encode Write to the request, automatically compressing data on the fly.
Method finish Finish handling the request request, flushing any data from the zlib buffer.
Instance Variable _zlibCompressor The zlib compressor instance used to compress the stream.
Instance Variable _request A reference to the originating request.
_zlibCompressor =
The zlib compressor instance used to compress the stream.
_request =
A reference to the originating request.
def __init__(self, compressLevel, request): (source)
Undocumented
def encode(self, data): (source)

Write to the request, automatically compressing data on the fly.

def finish(self): (source)

Finish handling the request request, flushing any data from the zlib buffer.

API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.