#dns-resolver #resolver #hyper #dns #getaddrinfo

hyper-system-resolver

An advanced system resolver for use with hyper

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

#40 in #dns-resolver

Download history 4238/week @ 2024-03-28 4921/week @ 2024-04-04 5002/week @ 2024-04-11 6001/week @ 2024-04-18 5283/week @ 2024-04-25 5267/week @ 2024-05-02 5086/week @ 2024-05-09 4926/week @ 2024-05-16 4469/week @ 2024-05-23 3281/week @ 2024-05-30 2784/week @ 2024-06-06 2590/week @ 2024-06-13 3136/week @ 2024-06-20 2934/week @ 2024-06-27 3034/week @ 2024-07-04 3683/week @ 2024-07-11

13,164 downloads per month
Used in 2 crates

MIT license

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–18MB
~203K SLoC