Return the shared HTTP client. Requires startup() to have run.
()
| 19 | |
| 20 | |
| 21 | def 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 | |
| 28 | async def startup() -> None: |
no outgoing calls
no test coverage detected