3 from . import connection, exceptions, request, response
4 from .connection import BaseSSLError as BaseSSLError, ConnectionError as ConnectionError, HTTPException as HTTPException
5 from .packages import ssl_match_hostname
6 from .util import connection as _connection, retry, timeout, url
8 ClosedPoolError = exceptions.ClosedPoolError
9 ProtocolError = exceptions.ProtocolError
10 EmptyPoolError = exceptions.EmptyPoolError
11 HostChangedError = exceptions.HostChangedError
12 LocationValueError = exceptions.LocationValueError
13 MaxRetryError = exceptions.MaxRetryError
14 ProxyError = exceptions.ProxyError
15 ReadTimeoutError = exceptions.ReadTimeoutError
16 SSLError = exceptions.SSLError
17 TimeoutError = exceptions.TimeoutError
18 InsecureRequestWarning = exceptions.InsecureRequestWarning
19 CertificateError = ssl_match_hostname.CertificateError
20 port_by_scheme = connection.port_by_scheme
21 DummyConnection = connection.DummyConnection
22 HTTPConnection = connection.HTTPConnection
23 HTTPSConnection = connection.HTTPSConnection
24 VerifiedHTTPSConnection = connection.VerifiedHTTPSConnection
25 RequestMethods = request.RequestMethods
26 HTTPResponse = response.HTTPResponse
27 is_connection_dropped = _connection.is_connection_dropped
29 Timeout = timeout.Timeout
30 get_host = url.get_host
40 def __init__(self, host, port=...) -> None: ...
41 def __enter__(self): ...
42 def __exit__(self, exc_type, exc_val, exc_tb): ...
45 class HTTPConnectionPool(ConnectionPool, RequestMethods):
73 def is_same_host(self, url): ...
89 class HTTPSConnectionPool(HTTPConnectionPool):
98 assert_fingerprint: Any
117 assert_fingerprint=...,
121 def connection_from_url(url, **kw): ...