mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-06 19:29:39 +01:00
Expose default authenticator type
This allows downstream users to avoid a dependency on hyper
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user