Struct httpsig_hyper::prelude::HttpSignatureHeaders
source · pub struct HttpSignatureHeaders { /* private fields */ }Expand description
Signature Headers derived from HttpSignatureBase
Implementations§
source§impl HttpSignatureHeaders
impl HttpSignatureHeaders
sourcepub fn try_parse(
signature_header: &str,
signature_input_header: &str
) -> Result<IndexMap<String, HttpSignatureHeaders, BuildHasherDefault<FxHasher>>, HttpSigError>
pub fn try_parse( signature_header: &str, signature_input_header: &str ) -> Result<IndexMap<String, HttpSignatureHeaders, BuildHasherDefault<FxHasher>>, HttpSigError>
Generates (possibly multiple) HttpSignatureHeaders from signature and signature-input header values
sourcepub fn signature_name(&self) -> &str
pub fn signature_name(&self) -> &str
Returns the signature name
sourcepub fn signature(&self) -> &HttpSignature
pub fn signature(&self) -> &HttpSignature
Returns the signature value without name
sourcepub fn signature_params(&self) -> &HttpSignatureParams
pub fn signature_params(&self) -> &HttpSignatureParams
Returns the signature params value without name for signature-input header
sourcepub fn signature_header_value(&self) -> String
pub fn signature_header_value(&self) -> String
Returns the signature value of “Signature” http header in the form of “<signature_name>=:<base64_signature>:”
sourcepub fn signature_input_header_value(&self) -> String
pub fn signature_input_header_value(&self) -> String
Returns the signature input value of “Signature-Input” http header in the form of “<signature_name>=<signature_params>”
Trait Implementations§
source§impl Clone for HttpSignatureHeaders
impl Clone for HttpSignatureHeaders
source§fn clone(&self) -> HttpSignatureHeaders
fn clone(&self) -> HttpSignatureHeaders
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for HttpSignatureHeaders
impl Send for HttpSignatureHeaders
impl Sync for HttpSignatureHeaders
impl Unpin for HttpSignatureHeaders
impl UnwindSafe for HttpSignatureHeaders
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