Enum hyper::client::RedirectPolicy
[−]
[src]
pub enum RedirectPolicy {
FollowNone,
FollowAll,
FollowIf(fn(_: &Url) -> bool),
}Behavior regarding how to handle redirects within a Client.
Variants
FollowNoneDon't follow any redirects.
FollowAllFollow all redirects.
FollowIf(fn(_: &Url) -> bool)Follow a redirect if the contained function returns true.
Trait Implementations
impl Copy for RedirectPolicy[src]
impl Debug for RedirectPolicy[src]
fn fmt(&self, fmt: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for RedirectPolicy[src]
fn clone(&self) -> RedirectPolicy[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for RedirectPolicy[src]
fn default() -> RedirectPolicy[src]
Returns the "default value" for a type. Read more