http_req 0.14.4

simple and lightweight HTTP client with built-in HTTPS support
Documentation
1
2
3
4
5
6
7
8
9
10
use http_req::request;

fn main() {
    // Sends a HTTP HEAD request and processes the response.
    let res = request::head("https://www.rust-lang.org/learn").unwrap();

    // Prints the details about the response.
    println!("Status: {} {}", res.status_code(), res.reason());
    println!("Headers: {}", res.headers());
}