hyper-rustls icon indicating copy to clipboard operation
hyper-rustls copied to clipboard

Added HttpsConnector::new function

Open MarkusTieger opened this issue 4 months ago • 11 comments

As you can see here ,

HttpsConnector implements

From<(H, C)>  for HttpsConnector<H>
where
    C: Into<Arc<rustls::ClientConfig>>

which just sets the server_name_resolver to DefaultServerNameResolver.

This adds

impl<H, C> From<(H, C, Arc<dyn ResolveServerName + Send + Sync>)> for HttpsConnector<H>
where
    C: Into<Arc<rustls::ClientConfig>>

which does the same, but can be used to specify another server_name_resolver.

MarkusTieger avatar May 31 '25 23:05 MarkusTieger