The ASGI entry point.
(self, scope: Scope, receive: Receive, send: Send)
| 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 | """ |
nothing calls this directly
no test coverage detected