Release 0.56

Refs #1005, #1031, #1141, #1229, #1236, #1239, #1246, #1247, #1252, #1266, #1276, #1278
This commit is contained in:
Simon Willison 2021-03-28 17:41:12 -07:00
commit af5a7f1c09
3 changed files with 19 additions and 2 deletions

View file

@ -143,7 +143,6 @@ Each of the helper methods take optional ``status=`` and ``headers=`` arguments,
Returning a response with .asgi_send(send)
------------------------------------------
In most cases you will return ``Response`` objects from your own view functions. You can also use a ``Response`` instance to respond at a lower level via ASGI, for example if you are writing code that uses the :ref:`plugin_asgi_wrapper` hook.
Create a ``Response`` object and then use ``await response.asgi_send(send)``, passing the ASGI ``send`` function. For example: