Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
added streaming support #5
Here's a Go server that just infinitely streams chunks, https://gist.github.com/marconi/fbd85020678a0cd9cf973d7bf79e30c6.
Sorry for the delay, a really busy week for me.
Not really happy with this approach. By exposing the response object the developer using this needs to call
I have not found a public facing server that uses chucked encoding and serves other data formats that JSON. With JSON data you need to wait for the complete result in order to parse it. So the use cases seem to be very limited.
With a simple test server using chunking and a
So to summarize I am not going to merge this PR.
While I like the idea of supporting chunked transfers the is a very limited use case and I am not willing to sacrifice the simple API for the main use case. I will accept a PR to add chunking if the main API stays simple and it is only exposes the
Totally understand and no worries, atm its just not always possible to have access to the server that you can set the