pub trait HttpProvider: Send + Sync {
// Required methods
fn request(
&self,
method: &str,
url: &str,
headers: HashMap<String, String>,
body: Option<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<HttpResponse, HttpError>> + Send + '_>>;
fn is_mock(&self) -> bool;
}Expand description
Provider trait for HTTP operations.