From b5dde2703bc84f513498eedd6ce244459bd8a15a Mon Sep 17 00:00:00 2001 From: glendc Date: Fri, 22 Mar 2024 15:46:16 +0100 Subject: [PATCH] rename with_default_proxy_filter_labels to with_proxy_filter_labels_default --- examples/http_connect_proxy.rs | 2 +- src/http/layer/proxy_auth/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,