[][src]Struct http_sig::CanonicalizeConfig

pub struct CanonicalizeConfig { /* fields omitted */ }

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]

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.