[][src]Trait http_signatures::prelude::WithHttpSignature

pub trait WithHttpSignature: AsHttpSignature {
    fn with_authorization_header(
        &mut self,
        key_id: String,
        key: CreateKey
    ) -> Result<&mut Self, Error>;
fn with_signature_header(
        &mut self,
        key_id: String,
        key: CreateKey
    ) -> Result<&mut Self, Error>; }

WithHttpSignature defines a trait for adding Authorization and Signature headers to another library's request or response object.

Required methods

fn with_authorization_header(
    &mut self,
    key_id: String,
    key: CreateKey
) -> Result<&mut Self, Error>

fn with_signature_header(
    &mut self,
    key_id: String,
    key: CreateKey
) -> Result<&mut Self, Error>

Loading content...

Implementors

Loading content...