[−][src]Struct http_sig::CanonicalizeConfig
Configuration for computing the canonical "signature string" of a request.
Methods
impl CanonicalizeConfig
[src]
pub fn new() -> Self
[src]
Creates a new canonicalization configuration using the default values.
pub fn with_headers(self, headers: Vec<Header>) -> Self
[src]
Set the headers to include in the signature
pub fn set_headers(&mut self, headers: Vec<Header>) -> &mut Self
[src]
Set the headers to include in the signature
pub fn headers(&self) -> Option<impl IntoIterator<Item = &Header>>
[src]
Get the headers to include in the signature
pub fn with_signature_created(self, signature_created: HeaderValue) -> Self
[src]
Set the "signature created" pseudo-header
pub fn set_signature_created(
&mut self,
signature_created: HeaderValue
) -> &mut Self
[src]
&mut self,
signature_created: HeaderValue
) -> &mut Self
Set the "signature created" pseudo-header
pub fn signature_created(&self) -> Option<&HeaderValue>
[src]
Get the "signature created" pseudo-header
pub fn with_signature_expires(self, signature_expires: HeaderValue) -> Self
[src]
Set the "signature expires" pseudo-header
pub fn set_signature_expires(
&mut self,
signature_expires: HeaderValue
) -> &mut Self
[src]
&mut self,
signature_expires: HeaderValue
) -> &mut Self
Set the "signature expires" pseudo-header
pub fn signature_expires(&self) -> Option<&HeaderValue>
[src]
Get the "signature expires" pseudo-header
Trait Implementations
impl Default for CanonicalizeConfig
[src]
fn default() -> CanonicalizeConfig
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,