http_req
Simple and lightweight HTTP client with built-in HTTPS support. Currently it's in heavy development and may frequently change.
Requirements
http_req by default uses rust-native-tls, which uses TLS framework provided by OS on Windows and macOS, and OpenSSL on all other platforms. But it also supports rus-tls.
Example
Basic GET request
use request;
How to use with rustls:
In order to use rustls in your project, add following lines to Cargo.toml:
[]
= ["http_req"]
[]
= "0.4.4"
= false
= ["rust-tls"]
= true
License
Licensed under MIT.