This commit is contained in:
Zubair Hassan 2025-11-16 14:43:02 +01:00 committed by GitHub
commit 35ebe4b8e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,8 +113,10 @@ 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 a
list of allowed methods in plain text.
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)