Trait HttpClient
pub trait HttpClient {
type Error;
// Required method
fn send<'life0, 'async_trait>(
&'life0 self,
request: Request<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Abstract HTTP Client.
Required Associated Types§
type Error
type Error
Request execution error.