LockedIn / test_httpx.py
JermaineAI's picture
Fixed Network Delay Issue
5349dcc
raw
history blame contribute delete
243 Bytes
import asyncio
import httpx
async def f():
try:
async with httpx.AsyncClient(timeout=0.001) as c:
await c.get('https://8.8.8.8')
except Exception as e:
print("str:", repr(str(e)))
asyncio.run(f())