benoitc / benoitc/hackney

Feature Request: body/2 error when body exceeds MaxLength

Open
#533 3 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.