MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _run_endpoint

Function _run_endpoint

src/core/system_selfcheck.py:354–365  ·  view source on GitHub ↗
(item: Dict[str, Any])

Source from the content-addressed store, hash-verified

352 )
353
354 def _run_endpoint(item: Dict[str, Any]) -> Dict[str, Any]:
355 return _probe_endpoint(
356 name=item["name"],
357 url=item["url"],
358 method=item.get("method", "GET"),
359 json_body=item.get("json_body"),
360 expected_codes=item.get("expected_codes"),
361 timeout_seconds=timeout_seconds,
362 proxy_url=proxy_url,
363 allow_direct_fallback=not proxy_only_mode,
364 critical=item.get("critical", False),
365 )
366
367 checks_indexed: List[Dict[str, Any]] = []
368 worker_count = min(4, max(1, len(endpoints)))

Callers

nothing calls this directly

Calls 2

_probe_endpointFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected