[][src]Trait http_signature_normalization_reqwest::Sign

pub trait Sign {
    fn authorization_signature<F, E, K>(
        self,
        config: &Config,
        key_id: K,
        f: F
    ) -> Result<Self, E>
    where
        Self: Sized,
        F: FnOnce(&str) -> Result<String, E>,
        E: From<SignError> + From<Error>,
        K: Display
;
fn signature<F, E, K>(
        self,
        config: &Config,
        key_id: K,
        f: F
    ) -> Result<Self, E>
    where
        Self: Sized,
        F: FnOnce(&str) -> Result<String, E>,
        E: From<SignError> + From<Error>,
        K: Display
; }

A trait implemented by the reqwest RequestBuilder type to add an HTTP Signature to the request

Required methods

fn authorization_signature<F, E, K>(
    self,
    config: &Config,
    key_id: K,
    f: F
) -> Result<Self, E> where
    Self: Sized,
    F: FnOnce(&str) -> Result<String, E>,
    E: From<SignError> + From<Error>,
    K: Display

Add an Authorization Signature to the request

fn signature<F, E, K>(self, config: &Config, key_id: K, f: F) -> Result<Self, E> where
    Self: Sized,
    F: FnOnce(&str) -> Result<String, E>,
    E: From<SignError> + From<Error>,
    K: Display

Add a Signature to the request

Loading content...

Implementations on Foreign Types

impl Sign for RequestBuilder[src]

Loading content...

Implementors

Loading content...