diff options
| author | th3nn3ss <chuksmcdennis@yahoo.com> | 2023-04-11 12:40:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-26 09:29:04 +0200 |
| commit | 3152f9de47a317d658ebee6d5b517b7e1258aa1f (patch) | |
| tree | dedb11cc11fe667cadb940774e7ee392555a2929 /docs | |
| parent | cd4c4c1905a838bda63d401bf93cfb77cb97ea95 (diff) | |
Refs #31949 -- Made http decorators to work with async functions.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.0.txt | 7 | ||||
| -rw-r--r-- | docs/topics/async.txt | 7 | ||||
| -rw-r--r-- | docs/topics/http/decorators.txt | 20 |
3 files changed, 34 insertions, 0 deletions
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index dacf5d1aaf..031cc8faf7 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -243,6 +243,13 @@ Decorators * :func:`~django.views.decorators.common.no_append_slash` * :func:`~django.views.decorators.debug.sensitive_variables` * :func:`~django.views.decorators.debug.sensitive_post_parameters` + * :func:`~django.views.decorators.http.condition` + * :func:`~django.views.decorators.http.etag` + * :func:`~django.views.decorators.http.last_modified` + * :func:`~django.views.decorators.http.require_http_methods` + * :func:`~django.views.decorators.http.require_GET` + * :func:`~django.views.decorators.http.require_POST` + * :func:`~django.views.decorators.http.require_safe` * ``xframe_options_deny()`` * ``xframe_options_sameorigin()`` * ``xframe_options_exempt()`` diff --git a/docs/topics/async.txt b/docs/topics/async.txt index 73f4bf2a35..6713914283 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -84,6 +84,13 @@ view functions: * :func:`~django.views.decorators.cache.cache_control` * :func:`~django.views.decorators.cache.never_cache` * :func:`~django.views.decorators.common.no_append_slash` +* :func:`~django.views.decorators.http.condition` +* :func:`~django.views.decorators.http.etag` +* :func:`~django.views.decorators.http.last_modified` +* :func:`~django.views.decorators.http.require_http_methods` +* :func:`~django.views.decorators.http.require_GET` +* :func:`~django.views.decorators.http.require_POST` +* :func:`~django.views.decorators.http.require_safe` * ``xframe_options_deny()`` * ``xframe_options_sameorigin()`` * ``xframe_options_exempt()`` diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt index 49219f3d5a..973eda72fe 100644 --- a/docs/topics/http/decorators.txt +++ b/docs/topics/http/decorators.txt @@ -33,14 +33,26 @@ a :class:`django.http.HttpResponseNotAllowed` if the conditions are not met. Note that request methods should be in uppercase. + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. + .. function:: require_GET() Decorator to require that a view only accepts the GET method. + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. + .. function:: require_POST() Decorator to require that a view only accepts the POST method. + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. + .. function:: require_safe() Decorator to require that a view only accepts the GET and HEAD methods. @@ -55,6 +67,10 @@ a :class:`django.http.HttpResponseNotAllowed` if the conditions are not met. such as link checkers, rely on HEAD requests, you might prefer using ``require_safe`` instead of ``require_GET``. + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. + Conditional view processing =========================== @@ -71,6 +87,10 @@ control caching behavior on particular views. headers; see :doc:`conditional view processing </topics/conditional-view-processing>`. + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. + .. module:: django.views.decorators.gzip GZip compression |
