Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YetAnotherHttpHandler is missing option AllowAutoRedirect #34

Open
AdamFrisby opened this issue Nov 28, 2023 · 1 comment
Open

YetAnotherHttpHandler is missing option AllowAutoRedirect #34

AdamFrisby opened this issue Nov 28, 2023 · 1 comment

Comments

@AdamFrisby
Copy link

The built-in HttpHandler supports a AllowAutoRedirect option (default: true), which will follow 302/etc redirects automatically.

Could a similar option be added here? (right now redirects are not automatically handled)

@riverreal
Copy link

Since YetAnotherHttpHandler is using Hyper under the hood it cannot be done as easily.
We would have to implement the auto redirect feature manually in the C# layer
or implement/use something like this https://github.com/srijs/rust-follow-redirects in the Hyper layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants