module documentation

Undocumented

Class PoolManager Allows for arbitrary requests while transparently keeping track of necessary connection pools for you.
Class ProxyManager Behaves just like :class:`PoolManager`, but sends all requests through the defined proxy, using the CONNECT method for HTTPS URLs.
Function proxy_from_url Undocumented
Constant SSL_KEYWORDS Undocumented
Variable key_fn_by_scheme Undocumented
Variable log Undocumented
Variable pool_classes_by_scheme Undocumented
Variable PoolKey Undocumented
Variable ProxyConfig Undocumented
Function _default_key_normalizer Create a pool key out of a request context dictionary.
Variable _key_fields Undocumented
Variable _proxy_config_fields Undocumented
def proxy_from_url(url, **kw): (source)

Undocumented

SSL_KEYWORDS: tuple[str, ...] = (source)

Undocumented

Value
('key_file',
 'cert_file',
 'cert_reqs',
 'ca_certs',
 'ssl_version',
 'ca_cert_dir',
 'ssl_context',
...
key_fn_by_scheme = (source)

Undocumented

Undocumented

pool_classes_by_scheme = (source)

Undocumented

Undocumented

ProxyConfig = (source)

Undocumented

def _default_key_normalizer(key_class, request_context): (source)

Create a pool key out of a request context dictionary. According to RFC 3986, both the scheme and host are case-insensitive. Therefore, this function normalizes both before constructing the pool key for an HTTPS request. If you wish to change this behaviour, provide alternate callables to ``key_fn_by_scheme``. :param key_class: The class to use when constructing the key. This should be a namedtuple with the ``scheme`` and ``host`` keys at a minimum. :type key_class: namedtuple :param request_context: A dictionary-like object that contain the context for a request. :type request_context: dict :return: A namedtuple that can be used as a connection pool key. :rtype: PoolKey

_key_fields: tuple[str, ...] = (source)

Undocumented

_proxy_config_fields: tuple[str, ...] = (source)

Undocumented