-
Notifications
You must be signed in to change notification settings - Fork 565
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
4.x: Helidon Webclient (4.0.10) is not routing the requests through proxy configured using Proxy Builder. #9022 #9023
Conversation
8345c2d
to
af72d9e
Compare
…roxy configured using Proxy Builder. helidon-io#9022 Signed-off-by: Jorge Bescos Gascon <[email protected]>
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.
This LGTM already, so I'm approving. Also let's run this through @tomas-langer if he has any further comments
@@ -587,6 +589,7 @@ public static class Builder implements io.helidon.common.Builder<Builder, Proxy> | |||
private int port = 80; | |||
private String username; | |||
private char[] password; | |||
private boolean httpConnect = true; |
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.
Maybe should default to false?
response.close(); | ||
throw new IllegalStateException("Proxy sent wrong HTTP response code: " + response.status()); | ||
if (proxy.httpConnect) { | ||
HttpClientRequest request = webClient.method(Method.CONNECT) |
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.
Is this block for http only? If not, do we also need to also check if the request is http?
webclient/api/src/main/java/io/helidon/webclient/api/Proxy.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jorge Bescos Gascon <[email protected]>
Signed-off-by: Jorge Bescos Gascon <[email protected]>
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.
LGTM
webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientRequestImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jorge Bescos Gascon <[email protected]>
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.
Looks good!
Description
#9022
It will do HTTP CONNECT if any of these is true:
Documentation
None