#http-request #http #client #request #https

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

#107 in HTTP client

Download history 9/week @ 2024-08-22 341/week @ 2024-08-29 1004/week @ 2024-09-05 1852/week @ 2024-09-12 1910/week @ 2024-09-19 1979/week @ 2024-09-26 2352/week @ 2024-10-03 2569/week @ 2024-10-10 2055/week @ 2024-10-17 1955/week @ 2024-10-24 2119/week @ 2024-10-31 3035/week @ 2024-11-07 2097/week @ 2024-11-14 1237/week @ 2024-11-21 541/week @ 2024-11-28

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

lib.rs:

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

"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
~55K SLoC