http_req
Simple and lightweight HTTP client with built-in HTTPS support.
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 http_req
with rustls
in your project, add following lines to Cargo.toml
:
[]
= {="^0.5", = false, = ["rust-tls"]}
License
Licensed under MIT.