Skip to main content

ClientHttp

Trait ClientHttp 

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

Generic HTTP client trait that is using http crate types

Required Methods§

Source

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

Implementors§