MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / set_httpx_client

Method set_httpx_client

trainer/src/api_client/client.py:72–78  ·  view source on GitHub ↗

Manually the underlying httpx.Client **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.

(self, client: httpx.Client)

Source from the content-addressed store, hash-verified

70 return evolve(self, timeout=timeout)
71
72 def set_httpx_client(self, client: httpx.Client) -> "Client":
73 """Manually the underlying httpx.Client
74
75 **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.
76 """
77 self._client = client
78 return self
79
80 def get_httpx_client(self) -> httpx.Client:
81 """Get the underlying httpx.Client, constructing a new one if not previously set"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected