Go to the latest version of this document.

# ``twisted`.`web`.`client`.`ProxyAgent``

class documentation

`class ProxyAgent(_AgentBase): (source)`

Constructor: `ProxyAgent(endpoint, reactor, pool)`

Implements interfaces: `twisted.web.iweb.IAgent`

View In Hierarchy

An HTTP agent able to cross HTTP proxies.

Present Since
11.1

Method | `__init__` | Undocumented
Method | `request` | Issue a new request via the configured proxy.
Instance Variable | `_proxyEndpoint` | The endpoint used to connect to the proxy.

Inherited from `_AgentBase`:

Method | `_computeHostValue` | Compute the string to use for the value of the Host header, based on the given scheme, host name, and port number.
Method | `_requestWithEndpoint` | Issue a new request, given the endpoint and the path sent as part of the request.
Instance Variable | `_pool` | The `HTTPConnectionPool` used to manage HTTP connections.
Instance Variable | `_reactor` | The `IReactorTime` implementation which will be used by the pool, and perhaps by subclasses as well.

def __init__(self, endpoint, reactor=None, pool=None): (source)
overrides `twisted.web.client._AgentBase.__init__`

Undocumented

def request(self, method, uri, headers=None, bodyProducer=None): (source)
from `twisted.web.iweb.IAgent`

Issue a new request via the configured proxy.

_proxyEndpoint = (source)

The endpoint used to connect to the proxy.