chttp 0.4.3

The practical HTTP client that is fun to use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chttp::http::Request;

fn main() -> Result<(), chttp::Error> {
    let response = Request::get("https://nghttp2.org")
        .extension(chttp::Options::default()
            .with_preferred_http_version(Some(chttp::http::Version::HTTP_2)))
        .body(())
        .map_err(Into::into)
        .and_then(chttp::send)?;

    println!("{:?}", response.headers());

    Ok(())
}