pub trait Client: Debug {
    type Error: ClientError;

    // Required methods
    fn headers(&self) -> &HeaderMap;
    fn rest<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Body>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn headers(&self) -> &HeaderMap

source

fn rest<'life0, 'async_trait>( &'life0 self, request: Request<Body> ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<Connector: 'static + Clone + Connect + Send + Sync> Client for Client<Connector, Body>

§

type Error = BaseClientError

source§

fn headers(&self) -> &HeaderMap

source§

fn rest<'life0, 'async_trait>( &'life0 self, request: Request<Body> ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§