Registry / http-client / attohttpc

attohttpc

JSON →
library0.31.0rscratesunverified

A small and lightweight HTTP client for Rust.

# Cargo.toml [dependencies] attohttpc = "0.31.0"
INSTALL
IMPORT
SIG · ATTOHTTPC
A
attohttpc
http-clientrustv0.31.0
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 attohttpc::Request;

Sends a GET request and prints the response body.

use attohttpc::Request; fn main() -> Result<(), attohttpc::Error> { let resp = Request::get("https://httpbin.org/get").send()?; println!("{}", resp.text()?); Ok(()) }
Debug
Known issues
gotchaTLS feature must be enabled for HTTPS requests
fix
Add `features = ["tls"]` to the attohttpc dependency in Cargo.toml
affects: >=0.31.0
Upgrade
Version history
0.31.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
34
Resources
attohttpc — cargo add attohttpc · libregistry