Crates.io | tinyget |
lib.rs | tinyget |
version | 1.0.2 |
source | src |
created_at | 2021-01-28 08:58:18.803832 |
updated_at | 2024-05-08 02:12:06.418563 |
description | Tiny HTTP(S) GET |
homepage | https://github.com/justjavac/rust_tinyget |
repository | https://github.com/justjavac/rust_tinyget |
max_upload_size | |
id | 347601 |
size | 69,185 |
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
:
[dependencies]
tinyget = "1.0"
let response = tinyget::get("https://httpbin.org/anything").send()?;
let hello = response.as_str()?;
println!("{}", hello);
rustc 1.76.0 (07dca489a 2024-02-04)
debug | release | |
---|---|---|
hello | 424,896 | 266,547 |
http | 772,416(+348k) | 319,856(+53k) |
https | 1,101,512(+677k) | 344,432(+78k) |
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.