__init__.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. from __future__ import absolute_import
  2. # For backwards compatibility, provide imports that used to be here.
  3. from .connection import is_connection_dropped
  4. from .request import SKIP_HEADER, SKIPPABLE_HEADERS, make_headers
  5. from .response import is_fp_closed
  6. from .retry import Retry
  7. from .ssl_ import (
  8. ALPN_PROTOCOLS,
  9. HAS_SNI,
  10. IS_PYOPENSSL,
  11. IS_SECURETRANSPORT,
  12. PROTOCOL_TLS,
  13. SSLContext,
  14. assert_fingerprint,
  15. resolve_cert_reqs,
  16. resolve_ssl_version,
  17. ssl_wrap_socket,
  18. )
  19. from .timeout import Timeout, current_time
  20. from .url import Url, get_host, parse_url, split_first
  21. from .wait import wait_for_read, wait_for_write
  22. __all__ = (
  23. "HAS_SNI",
  24. "IS_PYOPENSSL",
  25. "IS_SECURETRANSPORT",
  26. "SSLContext",
  27. "PROTOCOL_TLS",
  28. "ALPN_PROTOCOLS",
  29. "Retry",
  30. "Timeout",
  31. "Url",
  32. "assert_fingerprint",
  33. "current_time",
  34. "is_connection_dropped",
  35. "is_fp_closed",
  36. "get_host",
  37. "parse_url",
  38. "make_headers",
  39. "resolve_cert_reqs",
  40. "resolve_ssl_version",
  41. "split_first",
  42. "ssl_wrap_socket",
  43. "wait_for_read",
  44. "wait_for_write",
  45. "SKIP_HEADER",
  46. "SKIPPABLE_HEADERS",
  47. )