pub trait HttpSendDyn<RequestBody>where
RequestBody: Body + 'static,{
type ResponseBody: Body + 'static;
type Error: Error;
// Required method
fn send_dyn(
&self,
req: Request<RequestBody>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ResponseBody>, Self::Error>> + Send + '_>>;
}Expand description
HttpSendDyn is the dynamic version of HttpSend that can generate dynamic Futures.