[][src]Trait http_signature_normalization_actix::Sign

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

A trait implemented by the Actix Web ClientRequest 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
    F: FnOnce(&str) -> Result<String, E>,
    E: From<ToStrError> + From<InvalidHeaderValue>,
    K: Display,
    Self: Sized

Add an Authorization Signature to the request

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

Add a Signature to the request

Loading content...

Implementations on Foreign Types

impl Sign for ClientRequest[src]

Loading content...

Implementors

Loading content...