mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[2.2.x] Refs #30565 -- Doc'd HttpResponse.close() method.
Backport of 533311782f from master
This commit is contained in:
committed by
Carlton Gibson
parent
c3a0f76d11
commit
d200069b15
@@ -846,6 +846,11 @@ Methods
|
|||||||
values you used in ``set_cookie()`` -- otherwise the cookie may not be
|
values you used in ``set_cookie()`` -- otherwise the cookie may not be
|
||||||
deleted.
|
deleted.
|
||||||
|
|
||||||
|
.. method:: HttpResponse.close()
|
||||||
|
|
||||||
|
This method is called at the end of the request directly by the WSGI
|
||||||
|
server.
|
||||||
|
|
||||||
.. method:: HttpResponse.write(content)
|
.. method:: HttpResponse.write(content)
|
||||||
|
|
||||||
This method makes an :class:`HttpResponse` instance a file-like object.
|
This method makes an :class:`HttpResponse` instance a file-like object.
|
||||||
|
|||||||
Reference in New Issue
Block a user