HttpSend

Trait HttpSend 

Source
pub trait HttpSend:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn http_send<'life0, 'async_trait>(
        &'life0 self,
        req: Request<Bytes>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

HttpSend is used to send http request during the signing process.

For example, fetch IMDS token from AWS or OAuth2 refresh token. This trait is designed especially for the signer, please don’t use it as a general http client.

Required Methods§

Source

fn http_send<'life0, 'async_trait>( &'life0 self, req: Request<Bytes>, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Send http request and return the response.

Implementors§