lynx 0.2.0

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

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

    let mut r = Request::post("https://httpbin.org/post");
    r.body("Hello world!");

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