h2non / gentleman

Plugin-driven, extensible HTTP client toolkit for Go
https://pkg.go.dev/github.com/h2non/gentleman?tab=doc
MIT License
1.08k stars 53 forks source link

Segmented response for GET request with transfer-encoding: chunked #20

Closed ewilazarus closed 7 years ago

ewilazarus commented 7 years ago

Whenever attempting to GET a resource, on the response assembly, gentlemen invokes EnsureResponseFinalized, which works perfectly for the majority of use cases.

However, when the response uses a transfer-encoding: chunked strategy, the response should only be finalized once all chunks have been processed.

h2non commented 7 years ago

This should be fixed via #21.