Struct Attempt
pub struct Attempt<'a> { /* private fields */ }
A type that holds information on a redirection attempt.
Implementations
impl<'a> Attempt<'a>
fn status(&self) -> StatusCodeReturns the redirection response.
fn method(&self) -> &'a MethodReturns the destination method of the redirection.
fn location(&self) -> &'a UriReturns the destination URI of the redirection.
fn previous_method(&self) -> &'a MethodReturns the method for the previous request, before redirection.
fn previous(&self) -> &'a UriReturns the URI of the original request.