class documentation

class H2ConnectionPool:

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method ​_new​_connection Undocumented
Method ​_remove​_connection Undocumented
Method close​_connections Close all the HTTP/2 connections and remove them from pool
Method get​_connection Undocumented
Method put​_connection Undocumented
Instance Variable ​_connections Undocumented
Instance Variable ​_pending​_requests Undocumented
Instance Variable ​_reactor Undocumented
Instance Variable settings Undocumented
def __init__(self, reactor, settings):

Undocumented

Parameters
reactor:ReactorBaseUndocumented
settings:SettingsUndocumented
def _new_connection(self, key, uri, endpoint):

Undocumented

Parameters
key:TupleUndocumented
uri:URIUndocumented
endpoint:HostnameEndpointUndocumented
Returns
DeferredUndocumented
def _remove_connection(self, errors, key):

Undocumented

Parameters
errors:List[BaseException]Undocumented
key:TupleUndocumented
def close_connections(self):

Close all the HTTP/2 connections and remove them from pool

Returns:
Deferred that fires when all connections have been closed
def get_connection(self, key, uri, endpoint):

Undocumented

Parameters
key:TupleUndocumented
uri:URIUndocumented
endpoint:HostnameEndpointUndocumented
Returns
DeferredUndocumented
def put_connection(self, conn, key):

Undocumented

Parameters
conn:H2ClientProtocolUndocumented
key:TupleUndocumented
Returns
H2ClientProtocolUndocumented
_connections: Dict[Tuple, H2ClientProtocol] =

Undocumented

_pending_requests: Dict[Tuple, Deque[Deferred]] =

Undocumented

_reactor =

Undocumented

settings =

Undocumented