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

Function middleware

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

Source from the content-addressed store, hash-verified

1506
1507 async def middleware_factory(app, handler: Handler):
1508 async def middleware(request):
1509 order.append((1, app))
1510 resp = await handler(request)
1511 assert 200 == resp.status
1512 order.append((2, app))
1513 return resp
1514
1515 return middleware
1516

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
handlerFunction · 0.70

Tested by

no test coverage detected