ruma_client::http_client

Type Alias Hyper

Source
pub type Hyper<C = HttpConnector> = Client<C, Full<Bytes>>;
Available on crate feature hyper only.
Expand description

A hyper HTTP client.

The default connector is rarely useful, since it doesn’t support https.

Aliased Type§

struct Hyper<C = HttpConnector> { /* private fields */ }

Trait Implementations§

Source§

impl DefaultConstructibleHttpClient for Hyper

Source§

fn default() -> Self

Creates a new HTTP client with default configuration.
Source§

impl<C> HttpClient for Hyper<C>
where C: Connect + Clone + Send + Sync + 'static,

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 = Box<dyn Error + Send + Sync>

The error type for the send_request function.
Source§

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

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