MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / fetch

Function fetch

examples/client_json.py:7–12  ·  view source on GitHub ↗
(session: aiohttp.ClientSession)

Source from the content-addressed store, hash-verified

5
6
7async 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
15async def go(loop):

Callers 1

goFunction · 0.70

Calls 2

getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected