(session: aiohttp.ClientSession)
| 5 | |
| 6 | |
| 7 | async def fetch(session: aiohttp.ClientSession) -> None: |
| 8 | print("Query http://httpbin.org/get") |
| 9 | async with session.get("http://httpbin.org/get") as resp: |
| 10 | print(resp.status) |
| 11 | data = await resp.json() |
| 12 | print(data) |
| 13 | |
| 14 | |
| 15 | async def go(loop): |