Sean McArthur
3524db9473
refactor(client): use a tokio-threadpool for the GaiResolver
2019-07-10 16:11:05 -07:00
Sean McArthur
8f4b05ae78
feat(lib): update to std::future::Future
...
BREAKING CHANGE: All usage of async traits (`Future`, `Stream`,
`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions.
2019-07-09 15:55:22 -07:00
Sean McArthur
01c03db7ea
chore(lib): add dyn keyword to trait objects ( #1820 )
...
Requires Rust 1.27.
2019-06-03 13:08:13 -07:00
Sean McArthur
18f022c70b
docs(lib): fix several broken links throughout docs
...
Closes #1749
Closes #1750
2019-01-24 11:20:22 -08:00
Sean McArthur
c328c62ec2
fix(client): parse IPv6 hosts correctly in HttpConnector
2019-01-23 11:24:26 -08:00
Linus Färnstrand
be5ec45571
feat(client): Add useful trait impls to Name
2019-01-11 10:01:28 -08:00
Linus Färnstrand
607c4da0b9
feat(client): add FromStr impl for Name
2019-01-10 09:39:26 -08:00
Sean McArthur
deaa5d1aa9
chore(client): fix infinite recursion in TokioThreadpoolGaiResolver::new
2018-10-23 13:34:47 -07:00
Sean McArthur
34d780acd0
feat(dns): export client::connect::dns module, and
...
`TokioThreadpoolGaiResolver` type.
2018-10-23 12:49:56 -07:00
Steven Fackler
1e8d6439cf
feat(dns): tokio_threadpool::blocking resolver
...
Unlike the default resolver, this avoids spawning extra dedicated
threads but only works on the multi-threaded Tokio runtime.
Closes #1676
2018-10-23 09:57:04 -07:00
Sean McArthur
2d5af177c1
feat(client): add Resolve, used by HttpConnector
...
This introduces a `Resolve` trait to describe asynchronous DNS
resolution. The `HttpConnector` can be configured with a resolver,
allowing a user to still use all the functionality of the
`HttpConnector`, while customizing the DNS resolution.
To prevent a breaking change, the `HttpConnector` has its `Resolve`
generic set by default to `GaiResolver`. This is same as the existing
resolver, which uses `getaddrinfo` inside a thread pool.
Closes #1517
2018-10-18 12:10:15 -07:00
Sean McArthur
5bfc110538
refactor(client): improve connect module structure
2018-09-27 14:50:11 -07:00