pub struct SecFetchLayer<A = NoopAuthorizer, R = NoopReporter> { /* private fields */ }Expand description
Layer that applies SecFetch which validates request against CSRF attacks
Implementations§
Source§impl SecFetchLayer
impl SecFetchLayer
pub fn new<F>(make_policy: F) -> Selfwhere
F: FnOnce(&mut PolicyBuilder),
Source§impl<OldA, OldR> SecFetchLayer<OldA, OldR>
impl<OldA, OldR> SecFetchLayer<OldA, OldR>
pub fn allowing( self, paths: impl Into<Arc<[&'static str]>>, ) -> SecFetchLayer<PathAuthorizer, OldR>
pub fn no_enforce(self) -> Self
pub fn with_reporter<R: SecFetchReporter>( self, reporter: R, ) -> SecFetchLayer<OldA, R>
Trait Implementations§
Source§impl<A, R> Clone for SecFetchLayer<A, R>
impl<A, R> Clone for SecFetchLayer<A, R>
Source§impl Default for SecFetchLayer
impl Default for SecFetchLayer
Auto Trait Implementations§
impl<A, R> Freeze for SecFetchLayer<A, R>
impl<A, R> RefUnwindSafe for SecFetchLayer<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for SecFetchLayer<A, R>
impl<A, R> Sync for SecFetchLayer<A, R>
impl<A, R> Unpin for SecFetchLayer<A, R>
impl<A, R> UnwindSafe for SecFetchLayer<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
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