Registry / networking / hyperlocal

hyperlocal

JSON →
library0.9.1rscratesunverified

Provides Hyper bindings for Unix domain sockets, enabling HTTP over Unix sockets.

# Cargo.toml [dependencies] hyperlocal = "0.9.1"
INSTALL
IMPORT
SIG · HYPERLOCAL
H
hyperlocal
networkingrustv0.9.1
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.

UnixClientExt
use hyperlocal::UnixClientExt;

Make an HTTP GET request over a Unix domain socket.

use hyperlocal::UnixClientExt; use hyper::Client; use hyper::Uri; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = Client::unix(); let uri: Uri = "http://localhost/foo".parse()?; let resp = client.get(uri).await?; println!("Response: {}", resp.status()); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime.
affects: >=0.9.0
Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hyperlocal — cargo add hyperlocal · libregistry