1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/src/pip/_vendor/urllib3/util/__init__.py

50 lines
1.1 KiB
Python
Raw Normal View History

2016-01-19 00:28:54 +01:00
from __future__ import absolute_import
2019-10-09 16:16:37 +02:00
# For backwards compatibility, provide imports that used to be here.
2014-05-16 20:08:09 +02:00
from .connection import is_connection_dropped
2020-11-19 15:20:52 +01:00
from .request import SKIP_HEADER, SKIPPABLE_HEADERS, make_headers
2014-05-16 20:08:09 +02:00
from .response import is_fp_closed
2020-11-19 15:20:52 +01:00
from .retry import Retry
2014-05-16 20:08:09 +02:00
from .ssl_ import (
2020-11-19 15:20:52 +01:00
ALPN_PROTOCOLS,
2014-05-16 20:08:09 +02:00
HAS_SNI,
IS_PYOPENSSL,
2017-05-19 13:57:33 +02:00
IS_SECURETRANSPORT,
2020-11-19 15:20:52 +01:00
PROTOCOL_TLS,
SSLContext,
2014-05-16 20:08:09 +02:00
assert_fingerprint,
resolve_cert_reqs,
resolve_ssl_version,
ssl_wrap_socket,
)
2020-11-19 15:20:52 +01:00
from .timeout import Timeout, current_time
from .url import Url, get_host, parse_url, split_first
2019-10-09 16:16:37 +02:00
from .wait import wait_for_read, wait_for_write
2016-01-19 00:28:54 +01:00
__all__ = (
2019-10-09 16:16:37 +02:00
"HAS_SNI",
"IS_PYOPENSSL",
"IS_SECURETRANSPORT",
"SSLContext",
"PROTOCOL_TLS",
2020-11-19 15:20:52 +01:00
"ALPN_PROTOCOLS",
2019-10-09 16:16:37 +02:00
"Retry",
"Timeout",
"Url",
"assert_fingerprint",
"current_time",
"is_connection_dropped",
"is_fp_closed",
"get_host",
"parse_url",
"make_headers",
"resolve_cert_reqs",
"resolve_ssl_version",
"split_first",
"ssl_wrap_socket",
"wait_for_read",
"wait_for_write",
2020-11-19 15:20:52 +01:00
"SKIP_HEADER",
"SKIPPABLE_HEADERS",
2016-01-19 00:28:54 +01:00
)