-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse body for response #1811
Comments
Why do you want to set keepBodyBuffer to true? Without it memory is also reused, just between different requests using a pool. |
Because I want to use the same big buffer for the response |
So you want to keep reusing the If that is the case I understand and I would be open to a pull request that makes |
Greetings!
I have the following problem
I have a fairly heavy query, the answer to which takes up a lot of space
I would like to reuse the buffer for it
This can be done via
fasthttp.Post
, but you cannot insert a complex request with headers thereIt seems like the solution would be something like this
However, the keepBodyBuffer field is private
The text was updated successfully, but these errors were encountered: