[][src]Function enqueuemail::has_redirect

pub fn has_redirect(
    response: &Response<'_, '_>,
    origin: &Url
) -> Result<Option<Url>, Box<dyn Error>>

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.