I'm currently working on a project that does a lot of HTTP requests for data that it needs. It works by writing all the data into a buffer, then returning that buffer to the caller. It seems that waiting for the entire file to download data that can essentially streamed is a bad idea.
Question 1: Is there already a library / public code that can make HTTP and Authenticated HTTP requests that works as a stream?
Question 2: If there is no such library, why not? Is there a reason such a thing was never needed?