mirror of
https://github.com/django/django.git
synced 2025-11-17 02:24:22 +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
|
||||
method is called instead.
|
||||
|
||||
The default implementation returns ``HttpResponseNotAllowed`` with
|
||||
status code ``405 Method Not Allowed``.
|
||||
|
||||
.. note::
|
||||
|
||||
Django sets the list of allowed HTTP methods in the ``Allow``
|
||||
response header, and the response content is empty.
|
||||
The default implementation returns ``HttpResponseNotAllowed`` with the
|
||||
list of allowed methods in the ``Allow`` header. The response body is
|
||||
empty, as required by :rfc:`RFC 7231 <7231#section-6.5.5>`.
|
||||
|
||||
|
||||
.. method:: options(request, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue