From 1efe371c85a16c32599879c443d9d4d2ecebf7ec Mon Sep 17 00:00:00 2001 From: Ryan Schmitt Date: Fri, 10 Oct 2025 18:22:42 -0700 Subject: [PATCH] RequestConfig: Un-deprecate #setProxy When previously discussing the design of Unix domain socket support, we agreed that `proxy` is in fact a reasonable `RequestConfig` option. This change removes the deprecation notice. --- .../org/apache/hc/client5/http/config/RequestConfig.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/config/RequestConfig.java b/httpclient5/src/main/java/org/apache/hc/client5/http/config/RequestConfig.java index 55a42b2a84..8b39e0ee1b 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/config/RequestConfig.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/config/RequestConfig.java @@ -127,11 +127,7 @@ public boolean isExpectContinueEnabled() { /** * @see Builder#setProxy(HttpHost) - * - * @deprecated Use {@link org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner} - * or a custom {@link org.apache.hc.client5.http.routing.HttpRoutePlanner}. */ - @Deprecated public HttpHost getProxy() { return proxy; } @@ -372,10 +368,7 @@ public Builder setExpectContinueEnabled(final boolean expectContinueEnabled) { *

* * @return this instance. - * @deprecated Use {@link org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner} - * or a custom {@link org.apache.hc.client5.http.routing.HttpRoutePlanner}. */ - @Deprecated public Builder setProxy(final HttpHost proxy) { this.proxy = proxy; return this;