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

Function handler

tests/test_client_functional.py:105–106  ·  view source on GitHub ↗
(request: web.Request)

Source from the content-addressed store, hash-verified

103
104 async def factory(**kwargs: Any) -> TestClient[web.Request, web.Application]:
105 async def handler(request: web.Request) -> web.Response:
106 return web.json_response({"headers": dict(request.headers)})
107
108 app = web.Application()
109 app.router.add_get("/", handler)

Callers

nothing calls this directly

Calls 15

prepareMethod · 0.95
writeMethod · 0.95
enable_compressionMethod · 0.95
force_closeMethod · 0.95
drainMethod · 0.95
multipartMethod · 0.80
set_cookieMethod · 0.80
addMethod · 0.80
appendMethod · 0.80
readMethod · 0.45
force_closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…