a2httpc 0.30.0

Small and lightweight HTTP client
Documentation
1
2
3
4
5
6
7
8
9
10
11
use a2httpc::{Result, Session};

fn main() -> Result {
    let mut sess = Session::new();
    sess.header("Authorization", "Bearer please let me in!");

    let resp = sess.get("https://httpbin.org/get").send()?;
    println!("{}", resp.text()?);

    Ok(())
}