class documentation
class _StandardEndpointFactory: (source)
Constructor: _StandardEndpointFactory(reactor, contextFactory, connectTimeout, bindAddress)
Implements interfaces: twisted.web.iweb.IAgentEndpointFactory
Standard HTTP endpoint destinations - TCP for HTTP, TCP+TLS for HTTPS.
Method | __init__ |
No summary |
Method | endpoint |
Connect directly over TCP for b'http' scheme, and TLS for b'https'. |
Instance Variable | _bind |
If not None , the address passed to HostnameEndpoint for specifying the local address to bind to. |
Instance Variable | _connect |
If not None , the timeout passed to HostnameEndpoint for specifying the connection timeout. |
Instance Variable | _policy |
A web context factory which will be used to create SSL context objects for any SSL connections the agent needs to make. |
Instance Variable | _reactor |
Undocumented |
Parameters | |
reactor:see HostnameEndpoint.__init__ for acceptable reactor types. | A provider to use to create endpoints. |
contextIPolicyForHTTPS . | A factory for TLS contexts, to control the verification parameters of OpenSSL. |
connectfloat or None | The amount of time that this Agent will wait for the peer to accept a connection. |
bindbytes or None | The local address for client sockets to bind to. |
Connect directly over TCP for b'http' scheme, and TLS for b'https'.
Parameters | |
uri | URI to connect to. |
Returns | |
IStreamClientEndpoint | Endpoint to connect to. |