Get a new client matching this one with a new timeout (in seconds)
(self, timeout: httpx.Timeout)
| 196 | return evolve(self, cookies={**self._cookies, **cookies}) |
| 197 | |
| 198 | def with_timeout(self, timeout: httpx.Timeout) -> "AuthenticatedClient": |
| 199 | """Get a new client matching this one with a new timeout (in seconds)""" |
| 200 | if self._client is not None: |
| 201 | self._client.timeout = timeout |
| 202 | if self._async_client is not None: |
| 203 | self._async_client.timeout = timeout |
| 204 | return evolve(self, timeout=timeout) |
| 205 | |
| 206 | def set_httpx_client(self, client: httpx.Client) -> "AuthenticatedClient": |
| 207 | """Manually the underlying httpx.Client |
nothing calls this directly
no outgoing calls
no test coverage detected