twisted.web.client.ContentDecoderAgent(object)
class documentationtwisted.web.client
View Source
(View In Hierarchy)
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.
Parameters | decoders | A 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 Since | 11.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. |
Send a client request which declares supporting compressed content.
See Also | Agent.request . |
Check if the response is encoded, and wrap it to handle decompression.