a tiny fork of minreq.
Simple, minimal-dependency HTTP client. Optional features for https with native-tls
TLS implementations.
Add this to your Cargo.toml
:
toml
[dependencies]
tinyget = "1.0"
rust
let response = tinyget::get("https://httpbin.org/anything").send()?;
let hello = response.as_str()?;
println!("{}", hello);
rustc 1.49.0 (e1884a8e3 2020-12-29)
| | debug | release | |------------------|----------------|---------------| | hello | 262,864 | 233,752 | | http | 498,040(+235k) | 283,920(+50k) | | https | 702,696(+440k) | 319,632(+87k) |
| | http | https | |------------------|-----------:|----------:| | tinyget | 283,920 | 319,632 | | minreq | 300,328 | 959,744 | | ureq | 695,632 | 1,371,368 | | reqwest | 1,639,496 | 1,675,032 |
This crate is distributed under the terms of the MIT license.