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. | |
| Function | cancel | Cancel a readBody call, close the connection to the HTTP server immediately, if it is still open. | 
  
| Function | getAbort | Undocumented | 
Cancel a readBody call, close the connection to the HTTP server immediately, if it is still open.
| Parameters | deferred | The cancelled defer.Deferred. |