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 0 | 0 | 0 | 0 |
| 0.4.11 | 0 | 0 | 0 | 0 | 0 |
| 0.4.10 | 0 | 0 | 0 | 0 | 0 |
| 0.4.9 | 0 | 0 | 0 | 0 | 0 |
| 0.4.8 | 0 | 0 | 0 | 0 | 0 |
| 0.4.7 | 0 | 0 | 0 | 0 | 0 |
| 0.4.6 | 0 | 0 | 0 | 0 | 0 |
| 0.4.5 | 0 | 0 | 0 | 0 | 0 |
| 0.4.4 | 0 | 0 | 0 | 0 | 0 |
| 0.4.3 | 0 | 0 | 0 | 0 | 0 |
| 0.4.2 | 0 | 0 | 0 | 0 | 0 |
| 0.4.1 | 0 | 0 | 0 | 0 | 0 |
| 0.4.0 | 0 | 0 | 0 | 0 | 0 |
| 0.3.1 | 0 | 0 | 0 | 0 | 0 |
| 0.3.0 | 0 | 0 | 0 | 0 | 0 |
| 0.2.1 | 0 | 0 | 0 | 0 | 0 |
| 0.2.0 | 0 | 0 | 0 | 0 | 0 |
| 0.1.2 | 0 | 0 | 0 | 0 | 0 |
| 0.1.1 | 0 | 0 | 0 | 0 | 0 |
| 0.1.0 | 0 | 0 | 0 | 0 | 0 |
0.14.4 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseSimple and lightweight HTTP client with built-in HTTPS support.
http_req by default uses rust-native-tls, which relies on TLS framework provided by OS on Windows and macOS, and OpenSSL on all other platforms. But it also supports rustls.
Request type (with extended capabilities provided via RequestMessage and Stream)Response type, allowing easy access to details like the status code and headersRedirectPolicy
Transfer-Encoding: chunked
Uris and partial support for relative UrisError handling system allowing for better debuggingget, head, post
In order to use http_req with default configuration, add the following lines to Cargo.toml:
[dependencies]
http_req = "^0.14"In order to use http_req with rustls in your project, add the following lines to Cargo.toml:
[dependencies]
http_req = { version="^0.14", default-features = false, features = ["rust-tls"] }In order to use http_req without any additional features in your project (no HTTPS, no Authentication), add the following lines to Cargo.toml:
[dependencies]
http_req = { version="^0.14", default-features = false }Basic HTTP GET request
use http_req::request;
fn main() {
let mut body = Vec::new(); //Container for body of a response.
let res = request::get("https://doc.rust-lang.org/", &mut body).unwrap();
println!("Status: {} {}", res.status_code(), res.reason());
}Take a look at more examples
Licensed under MIT.