Part of twisted.web.client View Source View In Hierarchy
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. |
See Also | Agent.request . |