HttpSend

Trait HttpSend 

Source
pub trait HttpSend<RequestBody>
where RequestBody: Body + 'static,
{ type ResponseBody: Body + 'static; type Error: Error; // Required method fn send( &self, req: Request<RequestBody>, ) -> impl Future<Output = Result<Response<Self::ResponseBody>, Self::Error>> + Send; }
Expand description

HttpSend is used to send HTTP requests and receive responses.

Required Associated Types§

Required Methods§

Source

fn send( &self, req: Request<RequestBody>, ) -> impl Future<Output = Result<Response<Self::ResponseBody>, Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§