Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/httpcore/_async/__init__.py: 100%
10 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:12 +0000
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:12 +0000
1from .connection import AsyncHTTPConnection
2from .connection_pool import AsyncConnectionPool
3from .http11 import AsyncHTTP11Connection
4from .http_proxy import AsyncHTTPProxy
5from .interfaces import AsyncConnectionInterface
7try:
8 from .http2 import AsyncHTTP2Connection
9except ImportError: # pragma: nocover
11 class AsyncHTTP2Connection: # type: ignore
12 def __init__(self, *args, **kwargs) -> None: # type: ignore
13 raise RuntimeError(
14 "Attempted to use http2 support, but the `h2` package is not "
15 "installed. Use 'pip install httpcore[http2]'."
16 )
19try:
20 from .socks_proxy import AsyncSOCKSProxy
21except ImportError: # pragma: nocover
23 class AsyncSOCKSProxy: # type: ignore
24 def __init__(self, *args, **kwargs) -> None: # type: ignore
25 raise RuntimeError(
26 "Attempted to use SOCKS support, but the `socksio` package is not "
27 "installed. Use 'pip install httpcore[socks]'."
28 )
31__all__ = [
32 "AsyncHTTPConnection",
33 "AsyncConnectionPool",
34 "AsyncHTTPProxy",
35 "AsyncHTTP11Connection",
36 "AsyncHTTP2Connection",
37 "AsyncConnectionInterface",
38 "AsyncSOCKSProxy",
39]