twisted.web.client.readBody(response)
function documentationtwisted.web.client
View Source
Get the body of an IResponse
and
return it as a byte string.
This is a helper function for clients that don't want to incrementally receive the body of an HTTP response.
Parameters | response | The HTTP response for which the body will be read. (type: IResponse
provider) |
Returns | A Deferred
which will fire with the body of the response. Cancelling it will close the
connection to the server immediately. |