mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-13 15:46:49 +03:00
Add note on MaxResponseBodySize compatibility with StreamResponseBody
When `StreamResponseBody` is set the user is supposed to limit the reads they are doing themselves. Limiting the reads to `MaxResponseBodySize` would break backwards compatibility.
This commit is contained in:
@@ -279,6 +279,8 @@ type Client struct {
|
||||
// and response body is greater than the limit.
|
||||
//
|
||||
// By default response body size is unlimited.
|
||||
//
|
||||
// Note that if StreamResponseBody is true, MaxResponseBodySize is ignored.
|
||||
MaxResponseBodySize int
|
||||
|
||||
// Maximum duration for waiting for a free connection.
|
||||
|
||||
Reference in New Issue
Block a user