| 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. |
| 237 | class 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 | |
| 250 | def _is_expected_content_type( |
no outgoing calls
searching dependent graphs…