pub trait HttpClient: Send + Sync {
// Required method
fn request(&self, req: HttpRequest) -> Result<HttpResponse, PachaError>;
}Expand description
HTTP client trait for platform-specific implementations.
Required Methods§
Sourcefn request(&self, req: HttpRequest) -> Result<HttpResponse, PachaError>
fn request(&self, req: HttpRequest) -> Result<HttpResponse, PachaError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".