Document access to WSGI and ASGI attributes (Fixes #153)

This commit is contained in:
Miguel Grinberg
2023-06-24 10:34:55 +01:00
parent 3554bc91cb
commit d99df2c401

View File

@@ -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``.