Trait http_api_client::Client[][src]

pub trait Client {
    type RespondError: Error + 'static;
    fn respond<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Body>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Self::RespondError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn respond_endpoint<'life0, 'life1, 'async_trait, EP: Endpoint + Send + Sync>(
        &'life0 self,
        endpoint: &'life1 EP
    ) -> Pin<Box<dyn Future<Output = Result<EP::ParseResponseOutput, ClientRespondEndpointError<Self::RespondError, EP::RenderRequestError, EP::ParseResponseError>>> + Send + 'async_trait>>
    where
        EP: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

Associated Types

Required methods

Provided methods

Implementors