Registry / http-client / hyper-rustls

hyper-rustls

JSON →
library0.27.9rscratesunverified

Rustls+hyper integration for pure rust HTTPS.

# Cargo.toml [dependencies] hyper-rustls = "0.27.9"
INSTALL
IMPORT
SIG · HYPER-RUSTLS
H
hyper-rustls
http-clientrustv0.27.9
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.

HttpsConnector
use hyper_rustls::HttpsConnector;

Make an HTTPS request using hyper with rustls.

use hyper::Client; use hyper_rustls::HttpsConnector; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let https = HttpsConnector::new(); let client = Client::builder().build(https); let res = client.get("https://example.com".parse()?).await?; println!("Status: {}", res.status()); Ok(()) }
Debug
Known issues
gotchaRequires Tokio runtime for async execution
fix
Add tokio as a dependency and use #[tokio::main]
affects: >=0.20.0
Upgrade
Version history
0.27.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
hyper-rustls — cargo add hyper-rustls · libregistry