t.w.c.ProxyAgent(_AgentMixin) : class documentation

Part of twisted.web.client View Source View In Hierarchy

An HTTP agent able to cross HTTP proxies.
Instance Variables_factoryThe factory used to connect to the proxy.
_proxyEndpointThe endpoint used to connect to the proxy, passing the factory.
Present Since11.1
Method __init__ Undocumented
Method request Issue a new request via the configured proxy.
Method _connect Ignore the connection to the expected host, and connect to the proxy instead.

Inherited from _AgentMixin:

Method _connectAndRequest Internal helper to make the request.
Method _computeHostValue Compute the string to use for the value of the Host header, based on the given scheme, host name, and port number.
def __init__(self, endpoint): (source)
Undocumented
def _connect(self, scheme, host, port): (source)
Ignore the connection to the expected host, and connect to the proxy instead.
def request(self, method, uri, headers=None, bodyProducer=None): (source)
Issue a new request via the configured proxy.
API Documentation for Twisted, generated by pydoctor at 2012-02-14 18:17:43.