__init__.py 1.0 KB

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