#https #http-request #https-client

sysreq

Simple, virtually-zero-dependencies HTTP client wrapping a system client

6 releases

0.1.6 Sep 5, 2023
0.1.5 Sep 21, 2022
0.1.3 Jun 10, 2022
0.1.1 May 18, 2022

#302 in HTTP client

Download history 1403/week @ 2024-12-08 1257/week @ 2024-12-15 417/week @ 2024-12-22 1041/week @ 2024-12-29 1672/week @ 2025-01-05 1321/week @ 2025-01-12 1190/week @ 2025-01-19 1554/week @ 2025-01-26 1955/week @ 2025-02-02 1369/week @ 2025-02-09 1428/week @ 2025-02-16 2406/week @ 2025-02-23 1523/week @ 2025-03-02 93/week @ 2025-03-09 15/week @ 2025-03-16 18/week @ 2025-03-23

1,786 downloads per month
Used in 2 crates

MIT/Apache

20KB
500 lines

crates.io docs.rs license

sysreq

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.

Supported Backends

  • wget
  • cURL
  • PowerShell (Invoke-WebRequest)

Usage

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));

Dependencies

~2–3MB
~54K SLoC