Skip to content

Commit

Permalink
Merge branch 'connector-builder' into insecure-http
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Dec 12, 2024
2 parents 12b6912 + 7c2f691 commit 437386a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bindings/rust/s2n-tls-hyper/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ where
/// `conn_builder` will be used to produce the s2n-tls Connections used for negotiating HTTPS,
/// which can be an `s2n_tls::config::Config` or other `s2n_tls::connection::Builder`.
///
/// This API creates a `Builder` with the default hyper `HttpConnector`. To use an existing HTTP
/// connector, use `HttpsConnector::builder_with_http()`.
///
/// Note that s2n-tls-hyper will override the ALPN extension to negotiate HTTP. Any ALPN values
/// configured on `conn_builder` with APIs like
/// `s2n_tls::config::Builder::set_application_protocol_preference()` will be ignored.
Expand All @@ -68,7 +71,7 @@ where
}
}

impl<HttpConnector, ConnBuilder> HttpsConnector<HttpConnector, ConnBuilder>
impl<Http, ConnBuilder> HttpsConnector<Http, ConnBuilder>
where
ConnBuilder: connection::Builder,
<ConnBuilder as connection::Builder>::Output: Unpin,
Expand Down Expand Up @@ -98,10 +101,7 @@ where
/// Note that s2n-tls-hyper will override the ALPN extension to negotiate HTTP. Any ALPN values
/// configured on `conn_builder` with APIs like
/// `s2n_tls::config::Builder::set_application_protocol_preference()` will be ignored.
pub fn builder_with_http(
http: HttpConnector,
conn_builder: ConnBuilder,
) -> Builder<HttpConnector, ConnBuilder> {
pub fn builder_with_http(http: Http, conn_builder: ConnBuilder) -> Builder<Http, ConnBuilder> {
Builder {
http,
conn_builder,
Expand Down

0 comments on commit 437386a

Please sign in to comment.