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

Function final_handler

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

Source from the content-addressed store, hash-verified

5076 raise web.HTTPTemporaryRedirect("/final_destination")
5077
5078 async def final_handler(request: web.Request) -> web.Response:
5079 data = await request.read()
5080 data_received.append(("final", data))
5081 return web.Response(text=f"Received: {data.decode()}")
5082
5083 app = web.Application()
5084 app.router.add_post("/redirect", redirect_handler)

Callers

nothing calls this directly

Calls 4

appendMethod · 0.80
readMethod · 0.45
decodeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected