From d99df2c4010ab70c60b86ab334d656903e04eb26 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sat, 24 Jun 2023 10:34:55 +0100 Subject: [PATCH] Document access to WSGI and ASGI attributes (Fixes #153) --- docs/extensions.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/extensions.rst b/docs/extensions.rst index 540999d..6a27bd7 100644 --- a/docs/extensions.rst +++ b/docs/extensions.rst @@ -486,6 +486,9 @@ web application using the Gunicorn web server:: gunicorn test:app +When using this WSGI adapter, the ``environ`` dictionary provided by the web +server is available to request handlers as ``request.environ``. + Using an ASGI Web Server ^^^^^^^^^^^^^^^^^^^^^^^^ @@ -529,3 +532,5 @@ web application using the Uvicorn web server:: uvicorn test:app +When using this ASGI adapter, the ``scope`` dictionary provided by the web +server is available to request handlers as ``request.asgi_scope``.