#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

#47 in #dns-resolver

Download history 4871/week @ 2024-07-22 7197/week @ 2024-07-29 4899/week @ 2024-08-05 6599/week @ 2024-08-12 3497/week @ 2024-08-19 3913/week @ 2024-08-26 4994/week @ 2024-09-02 5421/week @ 2024-09-09 3106/week @ 2024-09-16 2776/week @ 2024-09-23 2862/week @ 2024-09-30 3001/week @ 2024-10-07 3501/week @ 2024-10-14 3197/week @ 2024-10-21 2822/week @ 2024-10-28 3628/week @ 2024-11-04

13,281 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–15MB
~187K SLoC