2015-12-23 03:19:45 +00:00
|
|
|
from __future__ import absolute_import
|
2014-11-20 02:00:00 +00:00
|
|
|
# For backwards compatibility, provide imports that used to be here.
|
|
|
|
from .connection import is_connection_dropped
|
|
|
|
from .request import make_headers
|
|
|
|
from .response import is_fp_closed
|
|
|
|
from .ssl_ import (
|
|
|
|
SSLContext,
|
|
|
|
HAS_SNI,
|
|
|
|
assert_fingerprint,
|
|
|
|
resolve_cert_reqs,
|
|
|
|
resolve_ssl_version,
|
|
|
|
ssl_wrap_socket,
|
|
|
|
)
|
|
|
|
from .timeout import (
|
|
|
|
current_time,
|
|
|
|
Timeout,
|
|
|
|
)
|
|
|
|
|
|
|
|
from .retry import Retry
|
|
|
|
from .url import (
|
|
|
|
get_host,
|
|
|
|
parse_url,
|
|
|
|
split_first,
|
|
|
|
Url,
|
|
|
|
)
|
2015-12-23 03:19:45 +00:00
|
|
|
|
|
|
|
__all__ = (
|
|
|
|
'HAS_SNI',
|
|
|
|
'SSLContext',
|
|
|
|
'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',
|
|
|
|
)
|