Crates.io | sysreq |
lib.rs | sysreq |
version | 0.1.6 |
source | src |
created_at | 2022-05-18 12:25:09.452926 |
updated_at | 2023-09-05 16:33:08.703716 |
description | Simple, virtually-zero-dependencies HTTP client wrapping a system client |
homepage | |
repository | https://github.com/WilliamVenner/sysreq |
max_upload_size | |
id | 588920 |
size | 31,852 |
Simple, virtually-zero-dependencies HTTP client wrapping a system client. Make HTTP requests without breaking the bank!
"Virtually-zero" means no unnecessary runtime dependencies. The only runtime dependency, other than std
, is URL validation, which is required for security reasons.
Invoke-WebRequest
)In your Cargo.toml
:
[dependencies]
sysreq = "0.1"
In your code:
let html = sysreq::get("https://www.rust-lang.org/").unwrap();
println!("{}", String::from_utf8_lossy(&html));