You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing PR #1414, I found that large response bodies can be streamed and partially read (based on how you use bodyStream) by setting both StreamResponseBody and MaxResponseBodySize:
Hello,
While reviewing PR #1414, I found that large response bodies can be streamed and partially read (based on how you use
bodyStream
) by setting bothStreamResponseBody
andMaxResponseBodySize
:fasthttp/http_test.go
Lines 3017 to 3037 in d2dc36f
When these two fields are set, the response body exceeding
maxBodySize
is returned as a stream:fasthttp/http.go
Lines 1477 to 1481 in d2dc36f
If this is a feasible workaround, should we update the doc or add examples for this specific use case?
Related doc and issues:
fasthttp/README.md
Lines 591 to 592 in d2dc36f
The text was updated successfully, but these errors were encountered: