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

Function handler

tests/test_web_functional.py:67–70  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

65
66async def test_simple_get(aiohttp_client) -> None:
67 async def handler(request):
68 body = await request.read()
69 assert b"" == body
70 return web.Response(body=b"OK")
71
72 app = web.Application()
73 app.router.add_get("/", handler)

Callers 1

middlewareFunction · 0.70

Calls 15

prepareMethod · 0.95
writeMethod · 0.95
drainMethod · 0.95
write_eofMethod · 0.95
encodeMethod · 0.80
multipartMethod · 0.80
addMethod · 0.80
appendMethod · 0.80
iter_anyMethod · 0.80

Tested by

no test coverage detected