1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! System DNS resolver for `hyper` & [`hyper-util`].
//!
//! Resolves the name via `getaddrinfo`, but more flexible
//! than [`hyper-util`]'s standard resolver.
//!
//! ## Usage
//!
//! ```
//! # #[cfg(feature = "addr-info-hints")] {
//! use hyper_system_resolver::{addr_info_hints, AddrInfoHints};
//! use hyper_util::client::legacy::{Client, connect::HttpConnector};
//!
//! let addr_info_hints = AddrInfoHints {
//! address_family: addr_info_hints::AddressFamily::Inet6,
//! };
//! let system_resolve = hyper_system_resolver::system::System {
//! addr_info_hints: Some(addr_info_hints.into()),
//! service: None,
//! };
//! let executor = hyper_util::rt::TokioExecutor::new();
//! let http_connector = HttpConnector::new_with_resolver(system_resolve.resolver());
//! let client = Client::builder(executor).build::<_, hyper::body::Incoming>(http_connector);
//! # }
//! ```
extern crate tracing;
pub use AddrInfoHints;