tesla
tesla copied to clipboard
Add `:max_body` to Hackney Adapter
To avoid filling the memory when response is huge and not expected, Hackney has an option to read the body up to a specified MaxLength
.
https://github.com/benoitc/hackney/blob/3f6d481ffbf4ddacc1c7fe1614030a06f39e04cc/src/hackney_response.erl#L271
What do you think of adding this option to the Hackney adapter?
Something like this: https://github.com/teamon/tesla/pull/528