async def main(): async with httpx.AsyncClient() as client: r = await client.get("https://api.example.com/x") return r.status_code