Enum isahc::config::RedirectPolicy [−][src]
pub enum RedirectPolicy { None, Follow, Limit(u32), }
Expand description
Describes a policy for handling server redirects.
The default is to not follow redirects.
Variants
Do not apply any special treatment to redirect responses. The response will be returned as-is and redirects will not be followed.
This is the default policy.
Follow all redirects automatically.
Follow redirects automatically up to a maximum number of redirects.
Tuple Fields of Limit
0: u32
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more