MCPcopy
hub / github.com/encode/httpx / _init_transport

Method _init_transport

httpx/_client.py:1432–1452  ·  httpx/_client.py::AsyncClient._init_transport
(
        self,
        verify: ssl.SSLContext | str | bool = True,
        cert: CertTypes | None = None,
        trust_env: bool = True,
        http1: bool = True,
        http2: bool = False,
        limits: Limits = DEFAULT_LIMITS,
        transport: AsyncBaseTransport | None = None,
    )

Source from the content-addressed store, hash-verified

1430 self._mounts = dict(sorted(self._mounts.items()))
1431
1432 def _init_transport(
1433 self,
1434 verify: ssl.SSLContext | str | bool = True,
1435 cert: CertTypes | None = None,
1436 trust_env: bool = True,
1437 http1: bool = True,
1438 http2: bool = False,
1439 limits: Limits = DEFAULT_LIMITS,
1440 transport: AsyncBaseTransport | None = None,
1441 ) -> AsyncBaseTransport:
1442 if transport is not None:
1443 return transport
1444
1445 return AsyncHTTPTransport(
1446 verify=verify,
1447 cert=cert,
1448 trust_env=trust_env,
1449 http1=http1,
1450 http2=http2,
1451 limits=limits,
1452 )
1453
1454 def _init_proxy_transport(
1455 self,

Callers 1

__init__Method · 0.95

Calls 1

AsyncHTTPTransportClass · 0.85

Tested by

no test coverage detected