Refs #31949 -- Made make_middleware_decorator to work with async functions.

This commit is contained in:
Ben Lomax 2023-07-08 22:51:19 +01:00 committed by Mariusz Felisiak
parent 059cb0dbc9
commit 74f7deec9e
8 changed files with 214 additions and 11 deletions

View file

@ -105,6 +105,10 @@ compression on a per-view basis.
It sets the ``Vary`` header accordingly, so that caches will base their
storage on the ``Accept-Encoding`` header.
.. versionchanged:: 5.0
Support for wrapping asynchronous view functions was added.
.. module:: django.views.decorators.vary
Vary headers