Feature Request: body/2 error when body exceeds MaxLength
Open
enhancement
- Dominant language
- Erlang
- Stars
- 1.4k
- Forks
- 455
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 1
Description
Currently, when you process a request that exceeds `MaxLength`, the incomplete result silently returns.
This is not always that helpful, because an impartial result might not be parseable. Since no error gets returned by hackney, its not possible to distinguish between malformed responses and excessively large responses that have been cropped.
I am using hackney through `HTTPoison`, and would like to support this behaviour.
Would this use-case fit hackney, or am i better off submitting a PR downstream in `HTTPoison`?
Contributor guide
Assessment
This issue has not been assessed yet.