pub fn has_redirect(
response: &Response<'_, '_>,
origin: &Url,
) -> Result<Option<Url>, Box<dyn Error>>Expand description
Read the “redirect location” from a HTTP response.
The Ok variant of the Results, if Some, includes the Location of the
redirect, read from the response headers, otherwise is Ok