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

Method set_async_httpx_client

trainer/src/api_client/client.py:103–109  ·  view source on GitHub ↗

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

(self, async_client: httpx.AsyncClient)

Source from the content-addressed store, hash-verified

101 self.get_httpx_client().__exit__(*args, **kwargs)
102
103 def set_async_httpx_client(self, async_client: httpx.AsyncClient) -> "Client":
104 """Manually the underlying httpx.AsyncClient
105
106 **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.
107 """
108 self._async_client = async_client
109 return self
110
111 def get_async_httpx_client(self) -> httpx.AsyncClient:
112 """Get the underlying httpx.AsyncClient, constructing a new one if not previously set"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected