5 releases (breaking)
0.5.0 | Feb 25, 2021 |
---|---|
0.4.0 | Feb 6, 2021 |
0.3.0 | Feb 6, 2021 |
0.2.0 | Feb 6, 2021 |
0.1.0 | Feb 6, 2021 |
#47 in #dns-resolver
13,281 downloads per month
Used in 2 crates
15KB
280 lines
hyper-system-resolver
System DNS resolver for hyper
.
Resolves the name via getaddrinfo
, but more flexible than hyper
standard resolver.
Usage
See the documentation.
lib.rs
:
System DNS resolver for hyper
.
Resolves the name via getaddrinfo
, but more flexible than hyper
standard resolver.
Usage
```
use hyper_system_resolver::{addr_info_hints, AddrInfoHints};
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 http_connector = hyper::client::HttpConnector::new_with_resolver(system_resolve.resolver());
let client = hyper::client::Client::builder().build::<_, hyper::Body>(http_connector);
```
Dependencies
~6–15MB
~187K SLoC