Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamvenner/sysreq
Simple, virtually-zero-dependencies HTTP client wrapping a system client for Rust
https://github.com/williamvenner/sysreq
http https hyper request reqwest rust ssl tls
Last synced: 6 days ago
JSON representation
Simple, virtually-zero-dependencies HTTP client wrapping a system client for Rust
- Host: GitHub
- URL: https://github.com/williamvenner/sysreq
- Owner: WilliamVenner
- License: other
- Created: 2022-05-18T12:22:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T16:33:02.000Z (about 1 year ago)
- Last Synced: 2024-10-11T11:33:49.080Z (about 1 month ago)
- Topics: http, https, hyper, request, reqwest, rust, ssl, tls
- Language: Rust
- Homepage: https://docs.rs/sysreq/
- Size: 74.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
[![crates.io](https://img.shields.io/crates/v/sysreq.svg)](https://crates.io/crates/sysreq)
[![docs.rs](https://docs.rs/sysreq/badge.svg)](https://docs.rs/sysreq/)
[![license](https://img.shields.io/crates/l/sysreq)](https://github.com/WilliamVenner/sysreq/blob/master/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`:
```toml
[dependencies]
sysreq = "0.1"
```In your code:
```rust
let html = sysreq::get("https://www.rust-lang.org/").unwrap();
println!("{}", String::from_utf8_lossy(&html));
```