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

Method _init_proxy_transport

httpx/_client.py:1454–1472  ·  httpx/_client.py::AsyncClient._init_proxy_transport
(
        self,
        proxy: Proxy,
        verify: ssl.SSLContext | str | bool = True,
        cert: CertTypes | None = None,
        trust_env: bool = True,
        http1: bool = True,
        http2: bool = False,
        limits: Limits = DEFAULT_LIMITS,
    )

Source from the content-addressed store, hash-verified

1452 )
1453
1454 def _init_proxy_transport(
1455 self,
1456 proxy: Proxy,
1457 verify: ssl.SSLContext | str | bool = True,
1458 cert: CertTypes | None = None,
1459 trust_env: bool = True,
1460 http1: bool = True,
1461 http2: bool = False,
1462 limits: Limits = DEFAULT_LIMITS,
1463 ) -> AsyncBaseTransport:
1464 return AsyncHTTPTransport(
1465 verify=verify,
1466 cert=cert,
1467 trust_env=trust_env,
1468 http1=http1,
1469 http2=http2,
1470 limits=limits,
1471 proxy=proxy,
1472 )
1473
1474 def _transport_for_url(self, url: URL) -> AsyncBaseTransport:
1475 class="st">"""

Callers 1

__init__Method · 0.95

Calls 1

AsyncHTTPTransportClass · 0.85

Tested by

no test coverage detected