pub trait Transport: Send + Sync {
// Required methods
fn post_json(
&self,
url: &str,
headers: &[(String, String)],
body: &str,
) -> TransportOutcome;
fn get(&self, url: &str, headers: &[(String, String)]) -> TransportOutcome;
}Expand description
A blocking HTTP transport. Implemented by ureq_transport::UreqTransport; mocked in tests.
Required Methods§
fn post_json( &self, url: &str, headers: &[(String, String)], body: &str, ) -> TransportOutcome
fn get(&self, url: &str, headers: &[(String, String)]) -> TransportOutcome
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".