Type Alias ruma_client::http_client::Reqwest

source ·
pub type Reqwest = Client;
Available on crate feature reqwest only.
Expand description

The reqwest crate’s Client.

Aliased Type§

struct Reqwest { /* private fields */ }

Trait Implementations§


impl DefaultConstructibleHttpClient for Reqwest


fn default() -> Self

Creates a new HTTP client with default configuration.

impl HttpClient for Reqwest


type RequestBody = BytesMut

The type to use for try_into_http_request.

type ResponseBody = Bytes

The type to use for try_from_http_response.

type Error = Error

The error type for the send_request function.

async fn send_http_request( &self, req: Request<BytesMut> ) -> Result<Response<Bytes>, Error>

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