Simple, virtually-zero-dependencies HTTP client wrapping a system client.
For when you want to make dead simple HTTP requests without breaking the bank.
Invoke-WebRequest
)In your Cargo.toml
:
toml
[dependencies]
sysreq = "0"
In your code:
rust
let html = sysreq::get("https://www.rust-lang.org/").unwrap();
println!("{}", String::from_utf8_lossy(&html));