attohttp 0.26.2

Small and lightweight HTTP client
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() -> attohttpc::Result {
    env_logger::init();

    let resp = attohttpc::get("https://statsapi.web.nhl.com/api/v1/schedule").send()?;
    println!("Status: {:?}", resp.status());
    println!("Headers:\n{:#?}", resp.headers());
    println!("Body:\n{}", resp.text()?);

    Ok(())
}