[][src]Trait http_types::Client

pub trait Client: Debug + Unpin + Send + Sync + Clone + 'static {
    fn send_req(
        &self,
        req: Request
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'static>>; }
This is supported on unstable only.

An HTTP client.

Required methods

fn send_req(
    &self,
    req: Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'static>>

This is supported on unstable only.

Send an HTTP request from the client.

Loading content...

Implementors

Loading content...