diff --git a/examples/http_connect_proxy.rs b/examples/http_connect_proxy.rs index f7f94da1..be935cbe 100644 --- a/examples/http_connect_proxy.rs +++ b/examples/http_connect_proxy.rs @@ -114,7 +114,7 @@ async fn main() { // in case you want to define a different separator, such as '_'. // - specify `.with_labels::()` in case you want to use a custom labels extractor. // - `ProxyAuthLayer::new` can be used for a custom Credentials type. - .layer(ProxyAuthLayer::basic(("john", "secret")).with_default_proxy_filter_labels()) + .layer(ProxyAuthLayer::basic(("john", "secret")).with_proxy_filter_labels_default()) // example of how one might insert an API layer into their proxy .layer(HijackLayer::new( DomainMatcher::new("echo.example"), diff --git a/src/http/layer/proxy_auth/mod.rs b/src/http/layer/proxy_auth/mod.rs index 71bbe193..333c117a 100644 --- a/src/http/layer/proxy_auth/mod.rs +++ b/src/http/layer/proxy_auth/mod.rs @@ -69,7 +69,7 @@ impl ProxyAuthLayer { /// /// [`UsernameConfig`]: crate::proxy::UsernameConfig /// [`ProxyFilter`]: crate::proxy::ProxyFilter - pub fn with_default_proxy_filter_labels(self) -> ProxyAuthLayer { + pub fn with_proxy_filter_labels_default(self) -> ProxyAuthLayer { ProxyAuthLayer { proxy_auth: self.proxy_auth, _phantom: PhantomData,