pub struct HttpConfig { /* private fields */ }Expand description
Shared HTTP behavior configuration for high-level opener/sealer helpers.
Implementations§
Source§impl HttpConfig
impl HttpConfig
Sourcepub fn strip_content_type_on_open(&self) -> bool
pub fn strip_content_type_on_open(&self) -> bool
Returns whether Content-Type is removed after opening.
Sourcepub fn set_scope_header_on_seal(&self) -> bool
pub fn set_scope_header_on_seal(&self) -> bool
Returns whether the advisory Foctet scope header is added when sealing.
Sourcepub fn with_strip_content_type_on_open(self, value: bool) -> Self
pub fn with_strip_content_type_on_open(self, value: bool) -> Self
Controls whether Content-Type is removed after opening.
Sourcepub fn with_scope_header_on_seal(self, value: bool) -> Self
pub fn with_scope_header_on_seal(self, value: bool) -> Self
Controls whether sealed HTTP messages receive the advisory Foctet scope header.
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§impl PartialEq for HttpConfig
impl PartialEq for HttpConfig
impl Eq for HttpConfig
impl StructuralPartialEq for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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