Skip to content

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

License

Notifications You must be signed in to change notification settings

WilliamVenner/sysreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages