lynx 0.2.0

Small and lightweight HTTP client
Documentation
1
2
3
4
5
6
7
8
9
10
11
use lynx::Request;

fn main() {
    env_logger::init();

    let r = Request::get("https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore");

    let (status, headers, reader) = r.send().unwrap();
    println!("{:?} {:#?}", status, headers);
    println!("{}", reader.string().unwrap());
}