slinger 0.2.14

An HTTP Client for Rust designed for hackers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  #[cfg(feature = "gzip")]
  {
    use slinger::ClientBuilder;
    let client = ClientBuilder::default().build().unwrap();
    let resp = client.get("http://httpbin.org/gzip").send().await?;
    println!("{:?}", resp.text());
  }
  Ok(())
}