pub trait HttpClient: Send + Sync {
// Required method
fn request(&self, req: HttpRequest) -> Result<HttpResponse, PachaError>;
}Expand description
HTTP client trait for platform-specific implementations.
pub trait HttpClient: Send + Sync {
// Required method
fn request(&self, req: HttpRequest) -> Result<HttpResponse, PachaError>;
}HTTP client trait for platform-specific implementations.