Trait RequestHandler

Source
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§

Source

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§

Source§

impl RequestHandler for KiteConnect

Implement the async request handler for KiteConnect struct