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

Function handler

tests/test_web_server.py:16–17  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

14
15async def test_simple_server(aiohttp_raw_server, aiohttp_client) -> None:
16 async def handler(request):
17 return web.Response(text=str(request.rel_url))
18
19 server = await aiohttp_raw_server(handler)
20 cli = await aiohttp_client(server)

Callers

nothing calls this directly

Calls 4

prepareMethod · 0.95
writeMethod · 0.95
UnexpectedExceptionClass · 0.70
readMethod · 0.45

Tested by

no test coverage detected