pub trait HttpClient: Send + Sync {
// Required method
fn post_json(
&self,
url: &str,
body: &Value,
extra_headers: Option<HeaderMap>,
) -> impl Future<Output = Result<Option<Value>, LogtailError>> + Send;
}Required Methods§
fn post_json( &self, url: &str, body: &Value, extra_headers: Option<HeaderMap>, ) -> impl Future<Output = Result<Option<Value>, LogtailError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.