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

Function do_request

src/api/admin.py:307–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 timeout = max(5, int(config.remote_browser_timeout or 60))
306 return base_url, api_key, timeout
307
308
309def _build_remote_browser_http_timeout(read_timeout: float) -> Any:
310 read_value = max(3.0, float(read_timeout))
311 write_value = min(10.0, max(3.0, read_value))
312 if httpx is None:
313 return read_value
314 return httpx.Timeout(
315 connect=2.5,
316 read=read_value,
317 write=write_value,
318 pool=2.5,
319 )
320
321
322def _parse_json_response_text(text: str) -> Optional[Any]:
323 if not text:
324 return None
325 try:
326 return json.loads(text)
327 except Exception:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected