Download the specified
Request, returning the results as a
Response.
This is a simplified version of
http for the common case where
you simply want the response data as a simple datatype. If you want
more power, such as interleaved actions on the response body during
download, you'll need to use
http directly. This function is
defined as:
httpLbs = lbsResponse <=< http
Even though the
Response contains a lazy bytestring, this
function does
not utilize lazy I/O, and therefore the entire
response body will live in memory. If you want constant memory usage,
you'll need to use
conduit packages's
Source returned
by
http.
This function will
throwIO an
HttpException for any
response with a non-2xx status code (besides 3xx redirects up to a
limit of 10 redirects). This behavior can be modified by changing the
checkStatus field of your request.
Note: Unlike previous versions, this function will perform redirects,
as specified by the
redirectCount setting.