docs(client): clarify HttpConnector::new_with_resolver doc (#2255)

link to hyper::client::connect::dns, closes #2254
This commit is contained in:
João Oliveira
2020-07-29 17:27:46 +01:00
committed by GitHub
parent 25a05894b9
commit 6e7e4e2cd5

View File

@@ -103,7 +103,7 @@ impl HttpConnector<TokioThreadpoolGaiResolver> {
impl<R> HttpConnector<R> {
/// Construct a new HttpConnector.
///
/// Takes a `Resolve` to handle DNS lookups.
/// Takes a [`Resolver`](crate::client::connect::dns#resolvers-are-services) to handle DNS lookups.
pub fn new_with_resolver(resolver: R) -> HttpConnector<R> {
HttpConnector {
config: Arc::new(Config {