On Sun, Aug 23, 2015 at 3:49 PM, Chinmay V Padhye <
echi...@gmail.com> wrote:
> When I use the http library calls such as http.Get, etc the entire body is
> read before the call is returned.
It doesn't. The http.Get() blocks until the response headers come back.
The body of the response is an io.Reader that will read from the
network connection in to a buffer.
> What I want is to get access to the resp.Body as soon as something is
> received. Is a custom RoundTripper the only way?
Just read from the resp.Body.
Perhaps if you explained the problem you're trying to solve I could be
of more help.