resty
resty copied to clipboard
memory leak when response is too large
You can disable response parsing/reading and use io.Copy manually with the raw response object's body. Don't forget to close the response object's body. Issue can be closed.
@john-behm-bertelsmann Thanks for your response.
@royalraul For the large response body size, it is recommended to take control on your end, since its not a typical JSON or XML or Text. https://pkg.go.dev/github.com/go-resty/resty/v2#Request.SetDoNotParseResponse