summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-06 21:33:57 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-06 21:33:57 (GMT)
commit38d9643d5e225dd7c342c6ccaae3e6e01f705e91 (patch)
treeb4b50d8504c87e4cd325625eb7495a4fd0157195 /Doc
parent0f6492250c37b639ce5aa92486aa3b05b61f90d6 (diff)
downloadcpython-38d9643d5e225dd7c342c6ccaae3e6e01f705e91.zip
cpython-38d9643d5e225dd7c342c6ccaae3e6e01f705e91.tar.gz
cpython-38d9643d5e225dd7c342c6ccaae3e6e01f705e91.tar.bz2
Issue #13464: Add a readinto() method to http.client.HTTPResponse.
Patch by Jon Kuhn.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/http.client.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index c1ce15b..7fce91f 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -502,6 +502,12 @@ statement.
Reads and returns the response body, or up to the next *amt* bytes.
+.. method:: HTTPResponse.readinto(b)
+
+ Reads up to the next len(b) bytes of the response body into the buffer *b*.
+ Returns the number of bytes read.
+
+ .. versionadded:: 3.3
.. method:: HTTPResponse.getheader(name, default=None)