Expand description

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

For when you want to make dead simple HTTP requests without breaking the bank.

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

Structs

Wrapper around Stdio output that prints as a string for debugging purposes.

Enums

Errors that sysreq can return

Functions

Perform a GET request to the given URL

Returns whether the system has a compatible HTTP client installed

Returns a list of supported system HTTP clients