MCPcopy Create free account
hub / github.com/Roy3838/Observer / get_http_client

Function get_http_client

api/http_client.py:21–25  ·  view source on GitHub ↗

Return the shared HTTP client. Requires startup() to have run.

()

Source from the content-addressed store, hash-verified

19
20
21def get_http_client() -> httpx.AsyncClient:
22 """Return the shared HTTP client. Requires startup() to have run."""
23 if _client is None:
24 raise RuntimeError("Shared HTTP client not initialized.")
25 return _client
26
27
28async def startup() -> None:

Callers 6

_mgmt_requestFunction · 0.90
handle_requestMethod · 0.85
_stream_responseMethod · 0.85
handle_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected