(url: str, timeout: float)
| 234 | |
| 235 | |
| 236 | def _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 | |
| 242 | def _wait_for_health(url: str, *, timeout: float, interval: float = 0.5) -> None: |
no test coverage detected