pub struct HttpPolicy { /* private fields */ }Expand description
Combines HTTP field rules, behavior choices, and resource limits.
Implementations§
Source§impl HttpPolicy
impl HttpPolicy
Sourcepub fn header_rules(&self) -> &RedactionRules
pub fn header_rules(&self) -> &RedactionRules
Returns the header field-rule snapshot.
Sourcepub fn query_rules(&self) -> &RedactionRules
pub fn query_rules(&self) -> &RedactionRules
Returns the query and form field-rule snapshot.
Sourcepub fn body_rules(&self) -> &RedactionRules
pub fn body_rules(&self) -> &RedactionRules
Returns the structured-body field-rule snapshot.
Sourcepub fn url_path_policy(&self) -> UrlPathPolicy
pub fn url_path_policy(&self) -> UrlPathPolicy
Returns the URL path visibility choice.
Sourcepub fn text_body_policy(&self) -> TextBodyPolicy
pub fn text_body_policy(&self) -> TextBodyPolicy
Returns the opaque text-body visibility choice.
Trait Implementations§
Source§impl Clone for HttpPolicy
impl Clone for HttpPolicy
Source§fn clone(&self) -> HttpPolicy
fn clone(&self) -> HttpPolicy
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 moreSource§impl Debug for HttpPolicy
impl Debug for HttpPolicy
impl Eq for HttpPolicy
Source§impl PartialEq for HttpPolicy
impl PartialEq for HttpPolicy
impl StructuralPartialEq for HttpPolicy
Auto Trait Implementations§
impl Freeze for HttpPolicy
impl RefUnwindSafe for HttpPolicy
impl Send for HttpPolicy
impl Sync for HttpPolicy
impl Unpin for HttpPolicy
impl UnsafeUnpin for HttpPolicy
impl UnwindSafe for HttpPolicy
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