pub struct PolicyBuilder { /* private fields */ }Expand description
Allows customizing the behaviour of the default evaluation policy
Implementations§
Source§impl PolicyBuilder
impl PolicyBuilder
Sourcepub fn reject_missing_metadata(&mut self) -> &mut Self
pub fn reject_missing_metadata(&mut self) -> &mut Self
Reject requests that do not provide all three Fetch Metadata headers:
sec-fetch-site, sec-fetch-mode, sec-fetch-dest
Sourcepub fn allow_safe_methods(&mut self) -> &mut Self
pub fn allow_safe_methods(&mut self) -> &mut Self
Allow safe requests (GET, HEAD, and OPTIONS) regardless of their origin
Auto Trait Implementations§
impl Freeze for PolicyBuilder
impl RefUnwindSafe for PolicyBuilder
impl Send for PolicyBuilder
impl Sync for PolicyBuilder
impl Unpin for PolicyBuilder
impl UnwindSafe for PolicyBuilder
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