A proxy connector for Hyper-based HTTP applications.
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.
use hyper_proxy::ProxyConnector;
Creates an HTTP client that routes requests through a proxy.
use hyper_proxy::{ProxyConnector, Intercept, Proxy};
use hyper::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let proxy = Proxy::new(Intercept::All, "http://proxy.example.com:8080".parse()?);
let connector = ProxyConnector::from_proxy(proxy);
let client = Client::builder().build(connector);
let resp = client.get("http://example.com".parse()?).await?;
println!("Status: {}", resp.status());
Ok(())
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.