[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
1 changed files with 5 additions and 0 deletions

View File

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