[Docs] RFC refrence added

This commit is contained in:
Zubair Hassan 2025-11-16 18:42:35 +05:00
parent 3ca6c60636
commit 1ccad66d63

View file

@ -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)