Struct http_sig::CanonicalizeConfig
source · pub struct CanonicalizeConfig { /* private fields */ }
Expand description
Configuration for computing the canonical “signature string” of a request.
Implementations§
source§impl CanonicalizeConfig
impl CanonicalizeConfig
sourcepub fn with_headers(self, headers: Vec<Header>) -> Self
pub fn with_headers(self, headers: Vec<Header>) -> Self
Set the headers to include in the signature
sourcepub fn set_headers(&mut self, headers: Vec<Header>) -> &mut Self
pub fn set_headers(&mut self, headers: Vec<Header>) -> &mut Self
Set the headers to include in the signature
sourcepub fn headers(&self) -> Option<impl IntoIterator<Item = &Header>>
pub fn headers(&self) -> Option<impl IntoIterator<Item = &Header>>
Get the headers to include in the signature
sourcepub fn with_signature_created(self, signature_created: HeaderValue) -> Self
pub fn with_signature_created(self, signature_created: HeaderValue) -> Self
Set the “signature created” pseudo-header
sourcepub fn set_signature_created(
&mut self,
signature_created: HeaderValue
) -> &mut Self
pub fn set_signature_created( &mut self, signature_created: HeaderValue ) -> &mut Self
Set the “signature created” pseudo-header
sourcepub fn signature_created(&self) -> Option<&HeaderValue>
pub fn signature_created(&self) -> Option<&HeaderValue>
Get the “signature created” pseudo-header
sourcepub fn with_signature_expires(self, signature_expires: HeaderValue) -> Self
pub fn with_signature_expires(self, signature_expires: HeaderValue) -> Self
Set the “signature expires” pseudo-header
sourcepub fn set_signature_expires(
&mut self,
signature_expires: HeaderValue
) -> &mut Self
pub fn set_signature_expires( &mut self, signature_expires: HeaderValue ) -> &mut Self
Set the “signature expires” pseudo-header
sourcepub fn signature_expires(&self) -> Option<&HeaderValue>
pub fn signature_expires(&self) -> Option<&HeaderValue>
Get the “signature expires” pseudo-header
Trait Implementations§
source§impl Default for CanonicalizeConfig
impl Default for CanonicalizeConfig
source§fn default() -> CanonicalizeConfig
fn default() -> CanonicalizeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CanonicalizeConfig
impl Send for CanonicalizeConfig
impl Sync for CanonicalizeConfig
impl Unpin for CanonicalizeConfig
impl UnwindSafe for CanonicalizeConfig
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