Trait http_signature_normalization_actix::Sign

source ·
pub trait Sign {
    // Required methods
    fn authorization_signature<F, E, K, S>(
        self,
        config: Config<S>,
        key_id: K,
        f: F
    ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
       where F: FnOnce(&str) -> Result<String, E> + Send + 'static,
             E: From<JoinError> + From<PrepareSignError> + From<Canceled> + From<InvalidHeaderValue> + Debug + Send + 'static,
             K: Display + 'static,
             S: Spawn + 'static,
             Self: Sized;
    fn signature<F, E, K, S>(
        self,
        config: Config<S>,
        key_id: K,
        f: F
    ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
       where F: FnOnce(&str) -> Result<String, E> + Send + 'static,
             E: From<JoinError> + From<PrepareSignError> + From<Canceled> + From<InvalidHeaderValue> + Debug + Send + 'static,
             K: Display + 'static,
             S: Spawn + 'static,
             Self: Sized;
}
Expand description

A trait implemented by the awc ClientRequest type to add an HTTP signature to the request

Required Methods§

source

fn authorization_signature<F, E, K, S>( self, config: Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static, E: From<JoinError> + From<PrepareSignError> + From<Canceled> + From<InvalidHeaderValue> + Debug + Send + 'static, K: Display + 'static, S: Spawn + 'static, Self: Sized,

Add an Authorization Signature to the request

source

fn signature<F, E, K, S>( self, config: Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static, E: From<JoinError> + From<PrepareSignError> + From<Canceled> + From<InvalidHeaderValue> + Debug + Send + 'static, K: Display + 'static, S: Spawn + 'static, Self: Sized,

Add a Signature to the request

Implementations on Foreign Types§

source§

impl Sign for ClientRequest

source§

fn authorization_signature<F, E, K, S>( self, config: Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static, E: From<JoinError> + From<PrepareSignError> + From<Canceled> + From<InvalidHeaderValue> + Debug + Send + 'static, K: Display + 'static, S: Spawn + 'static, Self: Sized,

source§

fn signature<F, E, K, S>( self, config: Config<S>, key_id: K, f: F ) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where F: FnOnce(&str) -> Result<String, E> + Send + 'static, E: From<JoinError> + From<PrepareSignError> + From<InvalidHeaderValue> + From<Canceled> + Debug + Send + 'static, K: Display + 'static, S: Spawn + 'static, Self: Sized,

Implementors§