MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / with_timeout

Method with_timeout

beanhub_cli/internal_api/client.py:74–80  ·  view source on GitHub ↗

Get a new client matching this one with a new timeout (in seconds)

(self, timeout: httpx.Timeout)

Source from the content-addressed store, hash-verified

72 return evolve(self, cookies={**self._cookies, **cookies})
73
74 def with_timeout(self, timeout: httpx.Timeout) -> "Client":
75 """Get a new client matching this one with a new timeout (in seconds)"""
76 if self._client is not None:
77 self._client.timeout = timeout
78 if self._async_client is not None:
79 self._async_client.timeout = timeout
80 return evolve(self, timeout=timeout)
81
82 def set_httpx_client(self, client: httpx.Client) -> "Client":
83 """Manually set the underlying httpx.Client

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected