From 4a52a71956a8d46fcb7294ac71734504bb09bcc2 Mon Sep 17 00:00:00 2001 From: S. Solomon Darnell Date: Fri, 28 Mar 2025 21:52:21 -0500 Subject: two version of R2R are here --- .../site-packages/uvicorn/middleware/asgi2.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py (limited to '.venv/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py') diff --git a/.venv/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py b/.venv/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py new file mode 100644 index 00000000..75145f73 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/uvicorn/middleware/asgi2.py @@ -0,0 +1,17 @@ +from uvicorn._types import ( + ASGI2Application, + ASGIReceiveCallable, + ASGISendCallable, + Scope, +) + + +class ASGI2Middleware: + def __init__(self, app: "ASGI2Application"): + self.app = app + + async def __call__( + self, scope: "Scope", receive: "ASGIReceiveCallable", send: "ASGISendCallable" + ) -> None: + instance = self.app(scope) + await instance(receive, send) -- cgit v1.2.3