Cysharp / YetAnotherHttpHandler

YetAnotherHttpHandler brings the power of HTTP/2 (and gRPC) to Unity and .NET Standard.
MIT License
376 stars 33 forks source link

YetAnotherHttpHandler is missing option AllowAutoRedirect #34

Open AdamFrisby opened 1 year ago

AdamFrisby commented 1 year ago

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 commented 11 months ago

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.