Skip to content

Feature Request: body/2 error when body exceeds MaxLength #533

Description

@pedep

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions