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§

source§

impl DefaultConstructibleHttpClient for Reqwest

source§

fn default() -> Self

Creates a new HTTP client with default configuration.
source§

impl HttpClient for Reqwest

source§

type RequestBody = BytesMut

The type to use for try_into_http_request.
source§

type ResponseBody = Bytes

The type to use for try_from_http_response.
source§

type Error = Error

The error type for the send_request function.
source§

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

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