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

Function handler

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

Source from the content-addressed store, hash-verified

72
73async def test_simple_get(aiohttp_client) -> None:
74 async def handler(request):
75 body = await request.read()
76 assert b"" == body
77 return web.Response(body=b"OK")
78
79 app = web.Application()
80 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
readableMethod · 0.80
writableMethod · 0.80

Tested by

no test coverage detected