| 76 | |
| 77 | |
| 78 | class WSGIMiddleware: |
| 79 | def __init__(self, app: Callable[..., Any]) -> None: |
| 80 | self.app = app |
| 81 | |
| 82 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 83 | assert scope["type"] == "http" |
| 84 | responder = WSGIResponder(self.app, scope) |
| 85 | await responder(receive, send) |
| 86 | |
| 87 | |
| 88 | class WSGIResponder: |
no outgoing calls