Struct FilterCredentials

struct FilterCredentials { ... }

A redirection Policy that removes credentials from requests in redirections.

Implementations

impl FilterCredentials

fn new() -> Self

Create a new FilterCredentials that removes blocklisted request headers in cross-origin redirections.

fn block_cross_origin(self: Self, enable: bool) -> Self

Configure self to mark cross-origin redirections as "blocked".

fn block_any(self: Self) -> Self

Configure self to mark every redirection as "blocked".

fn block_none(self: Self) -> Self

Configure self to mark no redirections as "blocked".

fn remove_blocklisted(self: Self, enable: bool) -> Self

Configure self to remove blocklisted headers in "blocked" redirections.

The blocklist includes the following headers:

  • Authorization
  • Cookie
  • Proxy-Authorization
fn remove_all(self: Self) -> Self

Configure self to remove all headers in "blocked" redirections.

fn remove_none(self: Self) -> Self

Configure self to remove no headers in "blocked" redirections.

impl Clone for FilterCredentials

fn clone(self: &Self) -> FilterCredentials

impl Debug for FilterCredentials

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for FilterCredentials

fn default() -> Self

impl Freeze for FilterCredentials

impl RefUnwindSafe for FilterCredentials

impl Send for FilterCredentials

impl Sync for FilterCredentials

impl Unpin for FilterCredentials

impl UnsafeUnpin for FilterCredentials

impl UnwindSafe for FilterCredentials

impl<B, E> Policy for FilterCredentials

fn redirect(self: &mut Self, attempt: &Attempt<'_>) -> Result<Action, E>
fn on_request(self: &mut Self, request: &mut Request<B>)

impl<T> Any for FilterCredentials

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for FilterCredentials

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for FilterCredentials

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for FilterCredentials

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for FilterCredentials

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for FilterCredentials

impl<T> PolicyExt for FilterCredentials

fn and<P, B, E>(self: Self, other: P) -> And<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>
fn or<P, B, E>(self: Self, other: P) -> Or<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>

impl<T> ToOwned for FilterCredentials

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for FilterCredentials

impl<T, U> Into for FilterCredentials

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for FilterCredentials

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for FilterCredentials

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>