Type Definition ruma_client::http_client::Reqwest

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

The reqwest crate’s Client.

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.

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

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