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

Method __call__

starlette/staticfiles.py:87–99  ·  view source on GitHub ↗

The ASGI entry point.

(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

85 return directories
86
87 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
88 """
89 The ASGI entry point.
90 """
91 assert scope["type"] == "http"
92
93 if not self.config_checked:
94 await self.check_config()
95 self.config_checked = True
96
97 path = self.get_path(scope)
98 response = await self.get_response(path, scope)
99 await response(scope, receive, send)
100
101 def get_path(self, scope: Scope) -> str:
102 """

Callers

nothing calls this directly

Calls 3

check_configMethod · 0.95
get_pathMethod · 0.95
get_responseMethod · 0.95

Tested by

no test coverage detected