from RWH http://book.realworldhaskell.org/read/extended-example-web-client-programming.html
The HTTP library used here does not read the HTTP result lazily. As a result, it can result in the consumption of a large amount of RAM when downloading large files such as podcasts. Other libraries are available that do not have this limitation. We used this one because it is stable, easy to install, and reasonably easy to use. We suggest mini-http, available from Hackage, for serious HTTP needs.
mini-http is deprecated on hackage. The questing is simple: Do you know of any package that offers and api for doing http requests and consuming the response body without loading it entirely into memory.
What I want is an api that offers a stream that can be transformed by iterating on it. Once simple example is counting bytes in a response.
Maybe an iteratee based api?