twisted.web.client.Agent.usingEndpointFactory(cls, reactor, endpointFactory, pool=None) class method documentationtwisted.web.client.Agent
View Source
Create a new Agent that will use
the endpoint factory to figure out how to connect to the server.
| Parameters | reactor | A provider of twisted.internet.interfaces.IReactorTime. |
| endpointFactory | Used to construct endpoints which the HTTP client will connect with. (type: an IAgentEndpointFactory
provider.) | |
| pool | An HTTPConnectionPool
instance, or None, in which case a non-persistent HTTPConnectionPool
instance will be created. (type: HTTPConnectionPool) | |
| Returns | A new Agent. | |