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

Function handler

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

Source from the content-addressed store, hash-verified

40async def test_simple_get(aiohttp_client) -> None:
41
42 async def handler(request):
43 body = await request.read()
44 assert b'' == body
45 return web.Response(body=b'OK')
46
47 app = web.Application()
48 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
check_fileFunction · 0.85
encodeMethod · 0.80
multipartMethod · 0.80
addMethod · 0.80
flushMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected