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

Method __call__

starlette/applications.py:86–90  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

84 return self.router.url_path_for(name, **path_params)
85
86 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
87 scope["app"] = self
88 if self.middleware_stack is None:
89 self.middleware_stack = self.build_middleware_stack()
90 await self.middleware_stack(scope, receive, send)
91
92 def mount(self, path: str, app: ASGIApp, name: str | None = None) -> None:
93 self.router.mount(path, app=app, name=name) # pragma: no cover

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected