Refactor redirects to use tower-http #2576
Labels
C-refactor
Category: refactor. This would improve the clarity of internal code.
E-medium
Effort: medium. A moderate amount of work.
E-pr-welcome
The feature is welcome to be added, instruction should be found in the issue.
reqwest supports defining redirect policies, and provides a few common ones. That support was later ported to
tower_http::follow_redirect
. To reduce duplication, and to make sure thetower-http
code has all the improvements reqwest gets, we should just make reqwest depend on the one fromtower-http
.Note: the public APIs are a little different. To prevent a breaking change, we should make the refactor simply internal.
The text was updated successfully, but these errors were encountered: