pub trait HttpClient {
// Required method
fn get(&self, url: &str) -> Result<Vec<u8>, HttpError>;
}Expand description
Minimal blocking HTTP GET, abstracted so sync logic is tested with a mock.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".