http_req 0.2.1

simple HTTP client with built-in HTTPS support
Documentation

http_req

Build Status Crates.io

Simple HTTP client with built-in HTTPS support. Currently it's in heavy development and may frequently change.

Requirements

http_req uses rust-native-tls, which uses TLS framework provided by OS on Windows and macOS, and OpenSSL on all other platforms.

Example

Basic GET request

extern crate http_req;
use http_req::request;

fn main() {
    let res = request::get("https://doc.rust-lang.org/").unwrap();

    println!("Status: {} {}", res.status_code(), res.reason());
}

License

Licensed under MIT.