mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #32002 -- Added headers parameter to HttpResponse and subclasses.
This commit is contained in:
committed by
Mariusz Felisiak
parent
2e7cc95499
commit
dcb69043d0
@@ -332,6 +332,11 @@ Requests and Responses
|
||||
Both interfaces will continue to be supported. See
|
||||
:ref:`setting-header-fields` for details.
|
||||
|
||||
* The new ``headers`` parameter of :class:`~django.http.HttpResponse`,
|
||||
:class:`~django.template.response.SimpleTemplateResponse`, and
|
||||
:class:`~django.template.response.TemplateResponse` allows setting response
|
||||
:attr:`~django.http.HttpResponse.headers` on instantiation.
|
||||
|
||||
Security
|
||||
~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user