Hi team,
I'm trying to build a rest client with hyper, with https & http support. But I'd like to avoid multiple connector in my struct, is that possible?
For example, for the following code, I'd like to only have one client field in the struct.
pub struct RestClient {
base_url: String,
auth_info: String,
scheme: RestScheme,
http_client: hyper::Client<TimeoutConnector<HttpConnector>>,
https_client: hyper::Client<TimeoutConnector<HttpsConnector<HttpConnector>>>,
}