mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #30997 -- Added HttpRequest.accepts().
This commit is contained in:
committed by
Mariusz Felisiak
parent
cf493e5c81
commit
d66d72f956
@@ -282,6 +282,9 @@ Requests and Responses
|
||||
now allow using ``samesite='None'`` (string) to explicitly state that the
|
||||
cookie is sent with all same-site and cross-site requests.
|
||||
|
||||
* The new :meth:`.HttpRequest.accepts` method returns whether the request
|
||||
accepts the given MIME type according to the ``Accept`` HTTP header.
|
||||
|
||||
Serialization
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user