MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _http_get

Function _http_get

eval/run_compare.py:236–239  ·  view source on GitHub ↗
(url: str, timeout: float)

Source from the content-addressed store, hash-verified

234
235
236def _http_get(url: str, timeout: float) -> tuple[int, bytes]:
237 req = urllib.request.Request(url, method="GET")
238 with urllib.request.urlopen(req, timeout=timeout) as resp: # noqa: S310
239 return resp.status, resp.read()
240
241
242def _wait_for_health(url: str, *, timeout: float, interval: float = 0.5) -> None:

Callers 1

_wait_for_healthFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected