feat(dns): export client::connect::dns module, and
				
					
				
			`TokioThreadpoolGaiResolver` type.
This commit is contained in:
		| @@ -15,7 +15,7 @@ use tokio_tcp::{TcpStream, ConnectFuture}; | ||||
| use tokio_timer::Delay; | ||||
|  | ||||
| use super::{Connect, Connected, Destination}; | ||||
| use super::dns::{self, GaiResolver, Resolve}; | ||||
| use super::dns::{self, GaiResolver, Resolve, TokioThreadpoolGaiResolver}; | ||||
|  | ||||
| /// A connector for the `http` scheme. | ||||
| /// | ||||
| @@ -99,6 +99,15 @@ impl HttpConnector { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl HttpConnector<TokioThreadpoolGaiResolver> { | ||||
|     /// Construct a new HttpConnector using the `TokioThreadpoolGaiResolver`. | ||||
|     /// | ||||
|     /// This resolver **requires** the threadpool runtime to be used. | ||||
|     pub fn new_with_tokio_threadpool_resolver() -> Self { | ||||
|         HttpConnector::new_with_resolver(TokioThreadpoolGaiResolver::new()) | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
| impl<R> HttpConnector<R> { | ||||
|     /// Construct a new HttpConnector. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user