Client

Trait Client 

Source
pub trait Client {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        method: Method,
        url: Url,
        headers: HeaderMap,
        body: Option<Bytes>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

pretend client

See module level documentation for more information.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, method: Method, url: Url, headers: HeaderMap, body: Option<Bytes>, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute a request

Implementors§