Part of twisted.web.iweb View Source View In Hierarchy
IAgentEndpointFactory
provides a way of constructing an endpoint used for outgoing Agent
requests. This is useful in the case of needing to proxy outgoing
connections, or to otherwise vary the transport used.Present Since | 14.1 |
Method | endpointForURI | Construct and return an IStreamClientEndpoint for the
outgoing request's connection. |
IStreamClientEndpoint
for the
outgoing request's connection.Parameters | uri | The URI of the request. (type: twisted.web.client.URI ) |
Returns | An endpoint which will have its connect method called to issue
the request. (type: an IStreamClientEndpoint provider) | |
Raises | twisted.internet.error.SchemeNotSupported | If the given URI's scheme cannot be handled by this factory. |