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

Function fetch

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

Source from the content-addressed store, hash-verified

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

Callers 1

goFunction · 0.70

Calls 2

getMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected