Fix link in ASGI docs (#4191)

* Fix link in ASGI docs

* Improve the wording of ASGI docs

Co-authored-by: Grey Li <withlihui@gmail.com>
This commit is contained in:
Frank Yu 2021-07-07 19:26:24 +08:00 committed by Elahi-cs
parent 7a73171edc
commit e85ae9fb90

View file

@ -5,7 +5,7 @@ ASGI
If you'd like to use an ASGI server you will need to utilise WSGI to If you'd like to use an ASGI server you will need to utilise WSGI to
ASGI middleware. The asgiref ASGI middleware. The asgiref
[WsgiToAsgi](https://github.com/django/asgiref#wsgi-to-asgi-adapter) `WsgiToAsgi <https://github.com/django/asgiref#wsgi-to-asgi-adapter>`_
adapter is recommended as it integrates with the event loop used for adapter is recommended as it integrates with the event loop used for
Flask's :ref:`async_await` support. You can use the adapter by Flask's :ref:`async_await` support. You can use the adapter by
wrapping the Flask app, wrapping the Flask app,
@ -21,7 +21,7 @@ wrapping the Flask app,
asgi_app = WsgiToAsgi(app) asgi_app = WsgiToAsgi(app)
and then serving the ``asgi_app`` with the asgi server, e.g. using and then serving the ``asgi_app`` with the ASGI server, e.g. using
`Hypercorn <https://gitlab.com/pgjones/hypercorn>`_, `Hypercorn <https://gitlab.com/pgjones/hypercorn>`_,
.. sourcecode:: text .. sourcecode:: text