class documentation

Base class offering common facilities for Agent-type classes.

Method __init__ Undocumented
Method _computeHostValue Compute the string to use for the value of the Host header, based on the given scheme, host name, and port number.
Method _requestWithEndpoint Issue a new request, given the endpoint and the path sent as part of the request.
Instance Variable _pool The HTTPConnectionPool used to manage HTTP connections.
Instance Variable _reactor The IReactorTime implementation which will be used by the pool, and perhaps by subclasses as well.
def __init__(self, reactor: IReactorTime, pool: HTTPConnectionPool | None): (source)
def _computeHostValue(self, scheme, host, port): (source)

Compute the string to use for the value of the Host header, based on the given scheme, host name, and port number.

def _requestWithEndpoint(self, key: tuple[bytes, bytes, int], endpoint: IStreamClientEndpoint, method: bytes, parsedURI: URI, headers: Headers | None, bodyProducer: IBodyProducer | None, requestPath: bytes) -> Deferred[IResponse]: (source)

Issue a new request, given the endpoint and the path sent as part of the request.

The HTTPConnectionPool used to manage HTTP connections.

_reactor = (source)

The IReactorTime implementation which will be used by the pool, and perhaps by subclasses as well.