Enum prima_bridge::RedirectPolicy
source · pub enum RedirectPolicy {
NoFollow,
Limited(usize),
}
Expand description
Determines how to handle HTTP redirects (3xx responses).
Variants§
NoFollow
Don’t follow redirects. Return an error in case of a redirect response.
Limited(usize)
Follow a limited number of redirects. Return an error if the maximum number of redirects is reached.
Trait Implementations§
source§impl From<RedirectPolicy> for Policy
impl From<RedirectPolicy> for Policy
source§fn from(policy: RedirectPolicy) -> Self
fn from(policy: RedirectPolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RedirectPolicy
impl Send for RedirectPolicy
impl Sync for RedirectPolicy
impl Unpin 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