Skip to main content

redirected_away_from

Function redirected_away_from 

Source
fn redirected_away_from(requested: &Url, response: &Response) -> Option<String>
Expand description

Where a response landed, if that is not requested.

Covers both halves of the redirect question at once, so the answer does not depend on how the caller’s [reqwest::Client] is configured: a client that follows redirects arrives with a different [reqwest::Response::url], and one that does not arrives with a 3xx status still sitting at the requested URL. Either way the document did not come from client_id.