Wrapper class for an http response body.
This provides a few additional conveniences that do not exist in the urllib3 model:
- Set the timeout on the socket (i.e read() timeouts)
- Auto validation of content length, if the amount of bytes we read does not match the content length, an exception is raised.
Close the underlying http response stream.
Read at most amt bytes from the stream.
If the amt argument is omitted, read all data.
Set the timeout seconds on the socket.