pub enum RedirectAuthPolicy {
Never,
SameHost,
}Expand description
Policy for re-sending an Authorization header across an HTTP
redirect.
Mirrors ureq::config::RedirectAuthHeaders — exposed here so the
public surface stays independent of which underlying client we wire
in. Default is RedirectAuthPolicy::Never.
Variants§
Never
Strip Authorization on every redirect.
SameHost
Keep Authorization only when the target shares the origin host
and the scheme does not downgrade (e.g. https → https is
fine, https → http is not).
Trait Implementations§
Source§impl Clone for RedirectAuthPolicy
impl Clone for RedirectAuthPolicy
Source§fn clone(&self) -> RedirectAuthPolicy
fn clone(&self) -> RedirectAuthPolicy
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 RedirectAuthPolicy
Source§impl Debug for RedirectAuthPolicy
impl Debug for RedirectAuthPolicy
Source§impl Default for RedirectAuthPolicy
impl Default for RedirectAuthPolicy
Source§fn default() -> RedirectAuthPolicy
fn default() -> RedirectAuthPolicy
Returns the “default value” for a type. Read more
impl Eq for RedirectAuthPolicy
Source§impl PartialEq for RedirectAuthPolicy
impl PartialEq for RedirectAuthPolicy
impl StructuralPartialEq for RedirectAuthPolicy
Auto Trait Implementations§
impl Freeze for RedirectAuthPolicy
impl RefUnwindSafe for RedirectAuthPolicy
impl Send for RedirectAuthPolicy
impl Sync for RedirectAuthPolicy
impl Unpin for RedirectAuthPolicy
impl UnsafeUnpin for RedirectAuthPolicy
impl UnwindSafe for RedirectAuthPolicy
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