Enum hyper::client::RedirectPolicy
source · Expand description
Behavior regarding how to handle redirects within a Client.
Variants§
FollowNone
Don’t follow any redirects.
FollowAll
Follow all redirects.
FollowIf(fn(_: &Url) -> bool)
Follow a redirect if the contained function returns true.
Trait Implementations§
source§impl Clone for RedirectPolicy
impl Clone for RedirectPolicy
source§fn clone(&self) -> RedirectPolicy
fn clone(&self) -> RedirectPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RedirectPolicy
impl Debug for RedirectPolicy
source§impl Default for RedirectPolicy
impl Default for RedirectPolicy
source§fn default() -> RedirectPolicy
fn default() -> RedirectPolicy
Returns the “default value” for a type. Read more