wasmer_wasix::http

Trait HttpClient

Source
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

Available on crate feature host-reqwest only.
Source§

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