Registry / http-client / hyper-trust-dns

hyper-trust-dns

JSON →
library0.5.0rscratesunverified

HTTP/HTTPS connectors for hyper that use trust-dns' DNS resolver.

# Cargo.toml [dependencies] hyper-trust-dns = "0.5.0"
INSTALL
IMPORT
SIG · HYPER-TRUST-DNS
H
hyper-trust-dns
http-clientrustv0.5.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.

TrustDnsConnector
use hyper_trust_dns::TrustDnsConnector;

Create an HTTP client with trust-dns DNS resolution.

use hyper_trust_dns::TrustDnsConnector; use hyper::Client; #[tokio::main] async fn main() { let connector = TrustDnsConnector::new(); let client = Client::builder().build(connector); let resp = client.get("http://example.com".parse().unwrap()).await.unwrap(); println!("Status: {}", resp.status()); }
Debug
Known issues
gotchaRequires tokio runtime and hyper features.
fix
Add tokio and hyper with 'client' feature.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
hyper-trust-dns — cargo add hyper-trust-dns · libregistry