1
0
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:
Claude Paroz
2019-11-17 13:24:10 +01:00
committed by Mariusz Felisiak
parent cf493e5c81
commit d66d72f956
5 changed files with 192 additions and 12 deletions

View File

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