MCPcopy
hub / github.com/aio-libs/aiohttp / go

Function go

examples/client_json.py:6–15  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

4
5@asyncio.coroutine
6def go(session):
7 print('Query http://httpbin.org/get')
8 resp = yield from session.get(
9 'http://httpbin.org/get')
10 print(resp.status)
11 try:
12 data = yield from resp.json()
13 print(data)
14 finally:
15 yield from resp.release()
16
17
18loop = asyncio.get_event_loop()

Callers 1

client_json.pyFile · 0.70

Calls 3

getMethod · 0.45
jsonMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected