pub trait RequestHandler {
// Required method
fn send_request(
&self,
url: Url,
method: &str,
data: Option<HashMap<&str, &str>>,
) -> impl Future<Output = Result<Response>> + Send;
}
Expand description
Async trait for handling HTTP requests across different platforms
Required Methods§
fn send_request( &self, url: Url, method: &str, data: Option<HashMap<&str, &str>>, ) -> impl Future<Output = Result<Response>> + 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.
Implementors§
impl RequestHandler for KiteConnect
Implement the async request handler for KiteConnect struct