MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _build_remote_browser_http_timeout

Function _build_remote_browser_http_timeout

src/api/admin.py:268–278  ·  view source on GitHub ↗
(read_timeout: float)

Source from the content-addressed store, hash-verified

266
267
268def _build_remote_browser_http_timeout(read_timeout: float) -> Any:
269 read_value = max(3.0, float(read_timeout))
270 write_value = min(10.0, max(3.0, read_value))
271 if httpx is None:
272 return read_value
273 return httpx.Timeout(
274 connect=2.5,
275 read=read_value,
276 write=write_value,
277 pool=2.5,
278 )
279
280
281def _parse_json_response_text(text: str) -> Optional[Any]:

Callers 1

_sync_json_http_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected