twisted.web.client._StandardEndpointFactory(object) class documentationtwisted.web.client
(View In Hierarchy)
Implements interfaces: twisted.web.iweb.IAgentEndpointFactory
Standard HTTP endpoint destinations - TCP for HTTP, TCP+TLS for HTTPS.
| Method | __init__ | |
| Method | endpointForURI | Connect directly over TCP for b'http'scheme, and TLS forb'https'. | 
| Instance Variable | _policyForHTTPS | A web context factory which will be used to create SSL context objects for any SSL connections the agent needs to make. | 
| Instance Variable | _connectTimeout | If not None,
the timeout passed toHostnameEndpointfor specifying the connection timeout. | 
| Instance Variable | _bindAddress | If not None,
the address passed toHostnameEndpointfor specifying the local address to bind to. | 
None,
the timeout passed to HostnameEndpoint
for specifying the connection timeout.
  None,
the address passed to HostnameEndpoint
for specifying the local address to bind to.
  | Parameters | reactor | A provider to use to create endpoints. (type: see HostnameEndpoint.__init__for acceptable reactor types.) | 
| contextFactory | A factory for TLS contexts, to control the verification parameters of 
OpenSSL. (type: IPolicyForHTTPS.) | |
| connectTimeout | The amount of time that this Agentwill wait for 
the peer to accept a connection. (type:floatorNone) | |
| bindAddress | The local address for client sockets to bind to. (type: bytesorNone) | 
Connect directly over TCP for b'http' scheme, and TLS for 
b'https'.
| Parameters | uri | URIto connect to. | 
| Returns | Endpoint to connect to. (type: IStreamClientEndpoint) | |