class documentation

class twisted.web.client._StandardEndpointFactory: (source)

Implements interfaces: twisted.web.iweb.IAgentEndpointFactory

View In Hierarchy

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 for b'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 to HostnameEndpoint for specifying the connection timeout.
Instance Variable _bindAddress If not None, the address passed to HostnameEndpoint for specifying the local address to bind to.
Instance Variable _reactor Undocumented
_policyForHTTPS = (source)
A web context factory which will be used to create SSL context objects for any SSL connections the agent needs to make.
_connectTimeout = (source)
If not None, the timeout passed to HostnameEndpoint for specifying the connection timeout.
_bindAddress = (source)
If not None, the address passed to HostnameEndpoint for specifying the local address to bind to.
def __init__(self, reactor, contextFactory, connectTimeout, bindAddress): (source)
ParametersreactorA provider to use to create endpoints. (type: see HostnameEndpoint.__init__ for acceptable reactor types.)
contextFactoryA factory for TLS contexts, to control the verification parameters of OpenSSL. (type: IPolicyForHTTPS.)
connectTimeoutThe amount of time that this Agent will wait for the peer to accept a connection. (type: float or None)
bindAddressThe local address for client sockets to bind to. (type: bytes or None)
_reactor = (source)

Undocumented

def endpointForURI(self, uri): (source)

Connect directly over TCP for b'http' scheme, and TLS for b'https'.

ParametersuriURI to connect to.
ReturnsEndpoint to connect to. (type: IStreamClientEndpoint)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.