Expose default authenticator type

This allows downstream users to avoid a dependency on hyper
This commit is contained in:
George Hahn
2020-05-01 11:25:25 -05:00
parent 6fe83abf61
commit b891e9e670

View File

@@ -454,6 +454,10 @@ pub trait HyperClientBuilder {
fn build_hyper_client(self) -> hyper::Client<Self::Connector>;
}
/// Default authenticator type
pub type DefaultAuthenticator =
Authenticator<hyper_rustls::HttpsConnector<hyper::client::HttpConnector>>;
/// The builder value used when the default hyper client should be used.
pub struct DefaultHyperClient;
impl HyperClientBuilder for DefaultHyperClient {