Type Alias ruma_client::http_client::Isahc

source ·
pub type Isahc = HttpClient;
Available on crate feature isahc only.
Expand description

The isahc crate’s HttpClient.

Aliased Type§

struct Isahc { /* private fields */ }

Trait Implementations§


impl HttpClient for Isahc


type RequestBody = Vec<u8>

The type to use for try_into_http_request.

type ResponseBody = Vec<u8>

The type to use for try_from_http_response.

type Error = Error

The error type for the send_request function.

fn send_http_request<'life0, 'async_trait>( &'life0 self, req: Request<Vec<u8>> ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Send an http::Request to get back an http::Response.