module documentation

Custom transports, with nicely configured defaults. The following additional keyword arguments are currently supported by httpcore... * uds: str * local_address: str * retries: int Example usages... # Disable HTTP/2 on a single specific domain. mounts = { "all://": httpx.HTTPTransport(http2=True), "all://*example.org": httpx.HTTPTransport() } # Using advanced httpcore configuration, with connection retries. transport = httpx.HTTPTransport(retries=1) client = httpx.Client(transport=transport) # Using advanced httpcore configuration, with unix domain sockets. transport = httpx.HTTPTransport(uds="socket.uds") client = httpx.Client(transport=transport)

Class AsyncResponseStream Undocumented
Class ResponseStream Undocumented
Function map_httpcore_exceptions Undocumented
Constant HTTPCORE_EXC_MAP Undocumented
Type Variable A Undocumented
Type Variable T Undocumented
@contextlib.contextmanager
def map_httpcore_exceptions(): (source)

Undocumented

Returns
typing.Iterator[None]Undocumented
HTTPCORE_EXC_MAP = (source)

Undocumented

Value
{httpcore.TimeoutException: TimeoutException,
 httpcore.ConnectTimeout: ConnectTimeout,
 httpcore.ReadTimeout: ReadTimeout,
 httpcore.WriteTimeout: WriteTimeout,
 httpcore.PoolTimeout: PoolTimeout,
 httpcore.NetworkError: NetworkError,
 httpcore.ConnectError: ConnectError,
...

Undocumented

Value
typing.TypeVar('A',
               bound='AsyncHTTPTransport')

Undocumented

Value
typing.TypeVar('T',
               bound='HTTPTransport')