Upgrade hackney 4.5.2#154
Open
cbecker wants to merge 3 commits into
Open
Conversation
Member
|
Thank you for the exploration. Yeah, the new surface is quite wide. I think the right approach would be moving to a different http client, so Waffle still provides protection on redirects and max file size. |
Author
What about removing the fetch functionality? Is this something needed? As I said in the comments, it's very easy for the user to fetch with whatever library they want. I am not sure it's best to be waffle's responsibility to provide it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
(Some comments AI authored, but reviewed by myself)
Description
Second take at upgrading Hackney to 4.5.2. First take was #147
I did not expect such complexity to use Hackney 4.x correctly.
The issues arise because we need to support async mode to honor max body length, and we need to handle redirects ourselves.
May be worth using another HTTP library, but well, here it is in case @achempion it works for you.
I want to be able to upgrade hackney and waffle is blocking me.
What happened in this PR:
Waffle.HTTPClientbehaviorDiscussion
I wonder if we want to keep Hackney, given this increase in complexity.
A few options:
I'd rather do (1) and let the user handle it.