Implements interfaces: twisted.web.iweb.IAgent

An Agent wrapper to handle encoded content.

It takes care of declaring the support for content in the Accept-Encoding header, and automatically decompresses the received data if it's effectively using compression.

ParametersdecodersA list or tuple of (name, decoder) objects. The name declares which decoding the decoder supports, and the decoder must return a response object when called/instantiated. For example, (('gzip', GzipDecoder)). The order determines how the decoders are going to be advertized to the server.
Present Since11.1
Method __init__ Undocumented
Method request Send a client request which declares supporting compressed content.
Method _handleResponse Check if the response is encoded, and wrap it to handle decompression.
def __init__(self, agent, decoders): (source)
Undocumented
def request(self, method, uri, headers=None, bodyProducer=None): (source)

Send a client request which declares supporting compressed content.

See AlsoAgent.request.
def _handleResponse(self, response): (source)

Check if the response is encoded, and wrap it to handle decompression.

API Documentation for Twisted, generated by pydoctor at 2016-04-11 10:39:53.