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 reactor for this Agent to place outgoing connections. (type: see HostnameEndpoint.__init__ for acceptable reactor types.) |
| 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. | |