Hey Gophers,
I'm writing an HTTP Client that loads chunked responses bodies with arbitrary sizes into memory.
To prevent large responses from consuming too much memory, I'd like to be able to limit the number of bytes that I read from any particular response.
My thinking is to use a struct similar to `io.LimitedReader` to wrap the response's Body and implementing my own Read method which explodes if the caller reads more than a limited number of bytes.
I'm a complete #golang noob, so any comments on whether I'm coming at this from the right angle would be very helpful!
Thanks,
John