| 7 | |
| 8 | |
| 9 | class ASGI2Middleware: |
| 10 | def __init__(self, app: "ASGI2Application"): |
| 11 | self.app = app |
| 12 | |
| 13 | async def __call__(self, scope: "Scope", receive: "ASGIReceiveCallable", send: "ASGISendCallable") -> None: |
| 14 | instance = self.app(scope) |
| 15 | await instance(receive, send) |