8 lines
170 B
Python
8 lines
170 B
Python
from urllib.request import urlopen
|
|
|
|
|
|
with urlopen("http://127.0.0.1:8099/api/health", timeout=3) as response:
|
|
if response.status != 200:
|
|
raise SystemExit(1)
|
|
|