Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/httpcore/__init__.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 07:19 +0000

1from ._api import request, stream 

2from ._async import ( 

3 AsyncConnectionInterface, 

4 AsyncConnectionPool, 

5 AsyncHTTP2Connection, 

6 AsyncHTTP11Connection, 

7 AsyncHTTPConnection, 

8 AsyncHTTPProxy, 

9 AsyncSOCKSProxy, 

10) 

11from ._exceptions import ( 

12 ConnectError, 

13 ConnectionNotAvailable, 

14 ConnectTimeout, 

15 LocalProtocolError, 

16 NetworkError, 

17 PoolTimeout, 

18 ProtocolError, 

19 ProxyError, 

20 ReadError, 

21 ReadTimeout, 

22 RemoteProtocolError, 

23 TimeoutException, 

24 UnsupportedProtocol, 

25 WriteError, 

26 WriteTimeout, 

27) 

28from ._models import URL, Origin, Request, Response 

29from ._ssl import default_ssl_context 

30from ._sync import ( 

31 ConnectionInterface, 

32 ConnectionPool, 

33 HTTP2Connection, 

34 HTTP11Connection, 

35 HTTPConnection, 

36 HTTPProxy, 

37 SOCKSProxy, 

38) 

39 

40__all__ = [ 

41 # top-level requests 

42 "request", 

43 "stream", 

44 # models 

45 "Origin", 

46 "URL", 

47 "Request", 

48 "Response", 

49 # async 

50 "AsyncHTTPConnection", 

51 "AsyncConnectionPool", 

52 "AsyncHTTPProxy", 

53 "AsyncHTTP11Connection", 

54 "AsyncHTTP2Connection", 

55 "AsyncConnectionInterface", 

56 "AsyncSOCKSProxy", 

57 # sync 

58 "HTTPConnection", 

59 "ConnectionPool", 

60 "HTTPProxy", 

61 "HTTP11Connection", 

62 "HTTP2Connection", 

63 "ConnectionInterface", 

64 "SOCKSProxy", 

65 # util 

66 "default_ssl_context", 

67 # exceptions 

68 "ConnectionNotAvailable", 

69 "ProxyError", 

70 "ProtocolError", 

71 "LocalProtocolError", 

72 "RemoteProtocolError", 

73 "UnsupportedProtocol", 

74 "TimeoutException", 

75 "PoolTimeout", 

76 "ConnectTimeout", 

77 "ReadTimeout", 

78 "WriteTimeout", 

79 "NetworkError", 

80 "ConnectError", 

81 "ReadError", 

82 "WriteError", 

83] 

84 

85__version__ = "0.17.2" 

86 

87 

88__locals = locals() 

89for __name in __all__: 

90 if not __name.startswith("__"): 

91 setattr(__locals[__name], "__module__", "httpcore") # noqa