-
Notifications
You must be signed in to change notification settings - Fork 981
HTTPCLIENT-2381 Enable automatic mapping #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
0f8cc97
to
537d126
Compare
httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java
Show resolved
Hide resolved
77210eb
to
1fa05b7
Compare
…Y environment variables to standard JDK proxy system properties via new EnvironmentProxyConfigurer and make HttpClientBuilder use it by default
d67f173
to
77c3f08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arturobernalg You should also add a similar option to HttpAsyncClientBuilder
.
Please also invite the original reporter to take a look at the proposed fix. From I understand (but I can well be wrong) the reporter actually wants us to read system properties by default instead of opt-in. I am not sure this change-set is going to be enough.
@arturobernalg Actually I think the fix is misplaced. This logic should go into |
b6335da
to
c5e7684
Compare
@@ -237,6 +237,9 @@ private ExecInterceptorEntry( | |||
|
|||
private List<Closeable> closeables; | |||
|
|||
private boolean applyEnvProxy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arturobernalg This should no longer be necessary, should it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arturobernalg This should no longer be necessary, should it?
done
…r HTTP(S)_PROXY / NO_PROXY directly without altering JVM system properties
765a1b0
to
b38a7b3
Compare
…roxySelector first, then HTTP(S)_PROXY/NO_PROXY). Add disableProxyAutodetection() to preserve legacy behavior.
967769e
to
a7030db
Compare
Enable env-proxy support ([HTTPCLIENT-2381](Enable env-proxy support (HTTPCLIENT-2381) – add EnvironmentProxyConfigurer, wire it into HttpClientBuilder, revert extra fallbacks, and introduce JUnit test (System-Lambda) with dep-management cleanup.)) – add
EnvironmentProxyConfigurer
, wire it intoHttpClientBuilder
, revert extra fallbacks, and introduce JUnit test (System-Lambda) with dep-management cleanup.