Skip to content

Commit

Permalink
rename with_default_proxy_filter_labels to with_proxy_filter_labels_d…
Browse files Browse the repository at this point in the history
…efault
  • Loading branch information
glendc committed Mar 22, 2024
1 parent a2a9bb0 commit b5dde27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/http_connect_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async fn main() {
// in case you want to define a different separator, such as '_'.
// - specify `.with_labels::<T>()` 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"),
Expand Down
2 changes: 1 addition & 1 deletion src/http/layer/proxy_auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl<A, C, L> ProxyAuthLayer<A, C, L> {
///
/// [`UsernameConfig`]: crate::proxy::UsernameConfig
/// [`ProxyFilter`]: crate::proxy::ProxyFilter
pub fn with_default_proxy_filter_labels(self) -> ProxyAuthLayer<A, C, UsernameConfig> {
pub fn with_proxy_filter_labels_default(self) -> ProxyAuthLayer<A, C, UsernameConfig> {
ProxyAuthLayer {
proxy_auth: self.proxy_auth,
_phantom: PhantomData,
Expand Down

0 comments on commit b5dde27

Please sign in to comment.