ruma_client::http_client

Type Alias 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.