pub enum RedirectPolicy {
Follow,
UseLastResponse,
}Expand description
What a CheckRedirect policy decides for the next hop.
Variants§
Follow
Follow the redirect (subject to the same policy on the following hop).
UseLastResponse
Stop and return the most recent response as-is, without following.
Equivalent to returning Go’s ErrUseLastResponse.
Auto Trait Implementations§
impl Freeze for RedirectPolicy
impl RefUnwindSafe for RedirectPolicy
impl Send for RedirectPolicy
impl Sync for RedirectPolicy
impl Unpin for RedirectPolicy
impl UnsafeUnpin for RedirectPolicy
impl UnwindSafe for RedirectPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more