Trait http_signature_normalization_actix::Sign [−][src]
pub trait Sign { fn authorization_signature<F, E, K>(
self,
config: Config,
key_id: K,
f: F
) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where
F: FnOnce(&str) -> Result<String, E> + Send + 'static,
E: From<BlockingError> + From<PrepareSignError> + From<InvalidHeaderValue> + Debug + Send + 'static,
K: Display + 'static,
Self: Sized; fn signature<F, E, K>(
self,
config: Config,
key_id: K,
f: F
) -> Pin<Box<dyn Future<Output = Result<Self, E>>>>
where
F: FnOnce(&str) -> Result<String, E> + Send + 'static,
E: From<BlockingError> + From<PrepareSignError> + From<InvalidHeaderValue> + Debug + Send + 'static,
K: Display + 'static,
Self: Sized; }
Expand description
A trait implemented by the awc ClientRequest type to add an HTTP signature to the request
Required methods
Add an Authorization Signature to the request
fn signature<F, E, K>(
self,
config: Config,
key_id: K,
f: F
) -> Pin<Box<dyn Future<Output = Result<Self, E>>>> where
F: FnOnce(&str) -> Result<String, E> + Send + 'static,
E: From<BlockingError> + From<PrepareSignError> + From<InvalidHeaderValue> + Debug + Send + 'static,
K: Display + 'static,
Self: Sized,
fn signature<F, E, K>(
self,
config: Config,
key_id: K,
f: F
) -> Pin<Box<dyn Future<Output = Result<Self, E>>>> where
F: FnOnce(&str) -> Result<String, E> + Send + 'static,
E: From<BlockingError> + From<PrepareSignError> + From<InvalidHeaderValue> + Debug + Send + 'static,
K: Display + 'static,
Self: Sized,
Add a Signature to the request