Registry / http-client / http-req

http-req

JSON →
library0.14.6rscratesunverified

A simple and lightweight HTTP client with built-in HTTPS support.

# Cargo.toml [dependencies] http_req = "0.14.6"
INSTALL
IMPORT
SIG · HTTP-REQ
H
http-req
http-clientrustv0.14.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

request
use http_req::request;

Sends a GET request to a URL and prints the status code.

use http_req::request; fn main() { let response = request::get("https://example.com").unwrap(); println!("Status: {}", response.status_code()); }
Debug
Known issues
gotchaDoes not support async operations; blocking only.
fix
Use an async HTTP client like reqwest if non-blocking I/O is needed.
affects: >=0.14.0
Upgrade
Version history
0.14.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
http-req — cargo add http-req · libregistry