pub enum HttpRedirectPolicy {
Follow,
Reject,
}Expand description
Controls whether an HTTP client follows redirects.
Variants§
Follow
Follow up to ten redirects, matching the existing client behavior.
Reject
Reject every redirect response.
Trait Implementations§
Source§impl Clone for HttpRedirectPolicy
impl Clone for HttpRedirectPolicy
Source§fn clone(&self) -> HttpRedirectPolicy
fn clone(&self) -> HttpRedirectPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpRedirectPolicy
Source§impl Debug for HttpRedirectPolicy
impl Debug for HttpRedirectPolicy
Source§impl Default for HttpRedirectPolicy
impl Default for HttpRedirectPolicy
Source§fn default() -> HttpRedirectPolicy
fn default() -> HttpRedirectPolicy
Returns the “default value” for a type. Read more
impl Eq for HttpRedirectPolicy
Source§impl PartialEq for HttpRedirectPolicy
impl PartialEq for HttpRedirectPolicy
impl StructuralPartialEq for HttpRedirectPolicy
Auto Trait Implementations§
impl Freeze for HttpRedirectPolicy
impl RefUnwindSafe for HttpRedirectPolicy
impl Send for HttpRedirectPolicy
impl Sync for HttpRedirectPolicy
impl Unpin for HttpRedirectPolicy
impl UnsafeUnpin for HttpRedirectPolicy
impl UnwindSafe for HttpRedirectPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more