mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #6657 -- Corrected HttpResponse.set_cookie()/set_signed_cookie() signatures in docs.
This commit is contained in:
parent
b7d05b2e5a
commit
15c5875e69
@ -803,7 +803,7 @@ Methods
|
||||
|
||||
Sets a header unless it has already been set.
|
||||
|
||||
.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False, samesite=None)
|
||||
.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=False, httponly=False, samesite=None)
|
||||
|
||||
Sets a cookie. The parameters are the same as in the
|
||||
:class:`~http.cookies.Morsel` cookie object in the Python standard library.
|
||||
@ -842,7 +842,7 @@ Methods
|
||||
attempt to store a cookie of more than 4096 bytes, but many browsers
|
||||
will not set the cookie correctly.
|
||||
|
||||
.. method:: HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False, samesite=None)
|
||||
.. method:: HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=False, httponly=False, samesite=None)
|
||||
|
||||
Like :meth:`~HttpResponse.set_cookie()`, but
|
||||
:doc:`cryptographic signing </topics/signing>` the cookie before setting
|
||||
|
Loading…
Reference in New Issue
Block a user