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

Function test_proxy_with_mounts

tests/client/test_proxies.py:260–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258
259
260def test_proxy_with_mounts():
261 proxy_transport = httpx.HTTPTransport(proxy="http://127.0.0.1")
262 client = httpx.Client(mounts={"http://": proxy_transport})
263
264 transport = client._transport_for_url(httpx.URL("http://example.com"))
265 assert transport == proxy_transport

Callers

nothing calls this directly

Calls 1

_transport_for_urlMethod · 0.95

Tested by

no test coverage detected