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

Method __call__

tests/test_applications.py:515–517  ·  tests/test_applications.py::MiddlewareWithArgs.__call__
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

513 self.arg = arg
514
515 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
516 calls.append(self.arg)
517 await self.app(scope, receive, send)
518
519 app = Starlette()
520 app.add_middleware(MiddlewareWithArgs, class="st">"foo")

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
appMethod · 0.45

Tested by

no test coverage detected