h2non / gentleman

Plugin-driven, extensible HTTP client toolkit for Go

Home Page:https://pkg.go.dev/github.com/h2non/gentleman?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmented response for GET request with transfer-encoding: chunked

ewilazarus opened this issue · comments

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.

commented

This should be fixed via #21.