(session)
| 5 | |
| 6 | |
| 7 | async def fetch(session): |
| 8 | print("Query http://httpbin.org/basic-auth/andrew/password") |
| 9 | async with session.get("http://httpbin.org/basic-auth/andrew/password") as resp: |
| 10 | print(resp.status) |
| 11 | body = await resp.text() |
| 12 | print(body) |
| 13 | |
| 14 | |
| 15 | async def go(loop): |