MCPcopy
hub / github.com/aio-libs/aiohttp / ConnectionKey

Class ConnectionKey

aiohttp/client_reqrep.py:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235# and a set in the connector. Since a NamedTuple is a tuple it uses
236# the fast native tuple __hash__ and __eq__ implementation in CPython.
237class ConnectionKey(NamedTuple):
238 # the key should contain an information about used proxy / TLS
239 # to prevent reusing wrong connections from a pool
240 host: str
241 port: int | None
242 is_ssl: bool
243 ssl: SSLContext | bool | Fingerprint
244 proxy: URL | None
245 proxy_auth: BasicAuth | None
246 proxy_headers_hash: int | None # hash(CIMultiDict)
247 server_hostname: str | None = None
248
249
250def _is_expected_content_type(

Callers 10

keyFunction · 0.90
key2Function · 0.90
other_host_key2Function · 0.90
ssl_keyFunction · 0.90
test_get_expiredFunction · 0.90
test_get_expired_sslFunction · 0.90

Calls

no outgoing calls

Tested by 10

keyFunction · 0.72
key2Function · 0.72
other_host_key2Function · 0.72
ssl_keyFunction · 0.72
test_get_expiredFunction · 0.72
test_get_expired_sslFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…