pub trait RoundTripper: Send + Sync {
// Required method
fn round_trip(&self, req: Request) -> Result<Response, HttpError>;
}Expand description
The low-level interface for executing a single HTTP request.
Port of Go’s http.RoundTripper.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".