pub trait HttpClientCapability: Clone + Debug {
// Required methods
fn new_client() -> Self;
fn request(
&self,
req: Request<Bytes>,
) -> impl Future<Output = Result<Response<Bytes>, HttpError>> + MaybeSend;
}Required Methods§
fn new_client() -> Self
fn request( &self, req: Request<Bytes>, ) -> impl Future<Output = Result<Response<Bytes>, HttpError>> + MaybeSend
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.