MCPcopy
hub / github.com/encode/starlette / _app

Function _app

tests/test_applications.py:533–535  ·  tests/test_applications.py::_app
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

531
532 def _middleware_factory(app: ASGIApp, arg: str) -> ASGIApp:
533 async def _app(scope: Scope, receive: Receive, send: Send) -> None:
534 calls.append(arg)
535 await app(scope, receive, send)
536
537 return _app
538

Callers

nothing calls this directly

Calls 2

appFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected