pub trait HttpClient: Debug {
    // Required method
    fn request(
        &self,
        request: HttpRequest
    ) -> BoxFuture<'_, Result<HttpResponse, Error>>;
}

Required Methods§

source

fn request( &self, request: HttpRequest ) -> BoxFuture<'_, Result<HttpResponse, Error>>

Implementors§

source§

impl HttpClient for ReqwestHttpClient

source§

impl<D, C> HttpClient for Dwhere D: Deref<Target = C> + Debug, C: HttpClient + ?Sized + 'static,