#http #https #client #request

sysreq

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

5 releases

Uses new Rust 2021

0.1.5 Sep 21, 2022
0.1.4 Sep 8, 2022
0.1.3 Jun 10, 2022
0.1.1 May 18, 2022

#81 in HTTP client

47 downloads per month

MIT/Apache

19KB
483 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"

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"

In your code:

let html = sysreq::get("https://www.rust-lang.org/").unwrap();
println!("{}", String::from_utf8_lossy(&html));

Dependencies

~1.5MB
~61K SLoC