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

Method set_httpx_client

trainer/src/api_client/client.py:206–212  ·  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

204 return evolve(self, timeout=timeout)
205
206 def set_httpx_client(self, client: httpx.Client) -> "AuthenticatedClient":
207 """Manually the underlying httpx.Client
208
209 **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.
210 """
211 self._client = client
212 return self
213
214 def get_httpx_client(self) -> httpx.Client:
215 """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