mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
clearly describe r.raw in Body Content Workflow
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ API Changes
|
||||
|
||||
* The parameter for streaming requests was changed from ``prefetch`` to
|
||||
``stream`` and the logic was inverted. In addition, ``stream`` is now
|
||||
required for chunked response reading.
|
||||
required for raw response reading.
|
||||
|
||||
::
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ At this point only the response headers have been downloaded and the connection
|
||||
content = r.content
|
||||
...
|
||||
|
||||
You can further control the workflow by use of the :class:`Response.iter_content` and :class:`Response.iter_lines` methods.
|
||||
You can further control the workflow by use of the :class:`Response.iter_content` and :class:`Response.iter_lines` methods. Also you can read undecoded body from the underlying urllib3 :class:`urllib3.HTTPResponse` at :class:`Response.raw`.
|
||||
|
||||
|
||||
Keep-Alive
|
||||
|
||||
Reference in New Issue
Block a user