actix / actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
https://actix.rs
Apache License 2.0
20.73k stars 1.63k forks source link

awc: read URL after a redirection #3403

Open robjtede opened 2 weeks ago

robjtede commented 2 weeks ago

Discussed in https://github.com/actix/actix-web/discussions/3387

Originally posted by **rharish101** June 4, 2024 If I request a webpage with a URL, and the website redirects to another page, how do I get the URL of the new page once awc returns from a `ClientRequest::send`? This is when redirections are allowed (i.e. not disabled when building the client) in the client.