mirror of
https://github.com/django/django.git
synced 2025-11-17 10:43:25 +00:00
[Docs] RFC refrence added
This commit is contained in:
parent
3ca6c60636
commit
1ccad66d63
1 changed files with 3 additions and 7 deletions
|
|
@ -113,13 +113,9 @@ ancestor classes are documented under the section title of **Ancestors
|
||||||
If the view was called with an HTTP method it doesn't support, this
|
If the view was called with an HTTP method it doesn't support, this
|
||||||
method is called instead.
|
method is called instead.
|
||||||
|
|
||||||
The default implementation returns ``HttpResponseNotAllowed`` with
|
The default implementation returns ``HttpResponseNotAllowed`` with the
|
||||||
status code ``405 Method Not Allowed``.
|
list of allowed methods in the ``Allow`` header. The response body is
|
||||||
|
empty, as required by :rfc:`RFC 7231 <7231#section-6.5.5>`.
|
||||||
.. note::
|
|
||||||
|
|
||||||
Django sets the list of allowed HTTP methods in the ``Allow``
|
|
||||||
response header, and the response content is empty.
|
|
||||||
|
|
||||||
|
|
||||||
.. method:: options(request, *args, **kwargs)
|
.. method:: options(request, *args, **kwargs)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue