Skip to main content

KmsHttpClient

Trait KmsHttpClient 

Source
pub trait KmsHttpClient: Send + Sync {
    // Required method
    fn post<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
        headers: &'life2 [(&'life3 str, &'life4 str)],
        body: &'life5 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, A1Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
}
Expand description

A trait for HTTP clients to transmit signing requests to a KMS.

Required Methods§

Source

fn post<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, url: &'life1 str, headers: &'life2 [(&'life3 str, &'life4 str)], body: &'life5 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, A1Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Post a payload to the KMS endpoint and return the raw response bytes.

Implementors§