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

Method with_cookies

trainer/src/api_client/client.py:56–62  ·  view source on GitHub ↗

Get a new client matching this one with additional cookies

(self, cookies: Dict[str, str])

Source from the content-addressed store, hash-verified

54 return evolve(self, headers={**self._headers, **headers})
55
56 def with_cookies(self, cookies: Dict[str, str]) -> "Client":
57 """Get a new client matching this one with additional cookies"""
58 if self._client is not None:
59 self._client.cookies.update(cookies)
60 if self._async_client is not None:
61 self._async_client.cookies.update(cookies)
62 return evolve(self, cookies={**self._cookies, **cookies})
63
64 def with_timeout(self, timeout: httpx.Timeout) -> "Client":
65 """Get a new client matching this one with a new timeout (in seconds)"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected