Get a new client matching this one with additional cookies
(self, cookies: Dict[str, str])
| 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)""" |
nothing calls this directly
no outgoing calls
no test coverage detected