1
0
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:
Chris Jerdonek
2019-06-19 13:57:15 +02:00
committed by Carlton Gibson
parent c3a0f76d11
commit d200069b15

View File

@@ -846,6 +846,11 @@ Methods
values you used in ``set_cookie()`` -- otherwise the cookie may not be
deleted.
.. method:: HttpResponse.close()
This method is called at the end of the request directly by the WSGI
server.
.. method:: HttpResponse.write(content)
This method makes an :class:`HttpResponse` instance a file-like object.