Trait HttpClient

Source
pub trait HttpClient {
    // Required methods
    fn user_agent(&mut self, user_agent: String);
    async fn get<'a, I>(&self, base_url: &str, args: I) -> Result<String, Error>
       where I: Iterator<Item = (&'a str, &'a str)>;
}

Required Methods§

Source

fn user_agent(&mut self, user_agent: String)

Source

async fn get<'a, I>(&self, base_url: &str, args: I) -> Result<String, Error>
where I: Iterator<Item = (&'a str, &'a str)>,

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§