File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,14 @@ fn retry_after(rsp: &BytesResponse) -> Option<SystemTime> {
184
184
} )
185
185
}
186
186
187
+ /// A default HTTP client implementation using hyper-rustls
187
188
#[ cfg( feature = "hyper-rustls" ) ]
188
- struct DefaultClient ( HyperClient < hyper_rustls:: HttpsConnector < HttpConnector > , Full < Bytes > > ) ;
189
+ pub struct DefaultClient ( HyperClient < hyper_rustls:: HttpsConnector < HttpConnector > , Full < Bytes > > ) ;
189
190
190
191
#[ cfg( feature = "hyper-rustls" ) ]
191
192
impl DefaultClient {
192
- fn try_new ( ) -> Result < Self , Error > {
193
+ /// Create a new default client using rustls-platform-verifier
194
+ pub fn try_new ( ) -> Result < Self , Error > {
193
195
Ok ( Self (
194
196
HyperClient :: builder ( TokioExecutor :: new ( ) ) . build (
195
197
hyper_rustls:: HttpsConnectorBuilder :: new ( )
You can’t perform that action at this time.
0 commit comments