-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How to integrate the jetty HttpClient
with ProxySelector
?
#12645
Comments
As I said, I'm not keen to integrate with What we can do it is support the system properties. We can make If they are, from Lastly, we need to make |
To recap:
|
We do not need to translate the jetty proxy configuration to the one from java.net(ProxySelector and Proxy). We need the other direction. This means, that one can choose to "downgrade" from the full capabilities of the jetty proxy configuration. The fact that it is a downgrade should be obvious, and is up to the user of jetty. Those properties are implementation specific to the default |
Why are you even using JDK's As I said, we can support the system properties, but there is no point in trying to use If I miss something, then I need a clear use case of why we should support |
The application has many modules. The central proxy abstraction is the JDK one. Only in one area(module) we are using the jetty client. That is why we need such a bridge.
This bit is the most unclear to me. If the semantic of the |
We don't support multiple proxies for the same origin. Considering that each proxy may speak a different protocol, possibly over a different transport, we would need to differentiate destinations based on the proxy too, which adds one more layer of complexity. |
Jetty 12 ee8 java 17
Moving the discussion here. Any pointer would be very helpful on how one would do this. For. ex. should we start from
ProxyConfiguration.Proxy
, to implement a custom one to use inorg.eclipse.jetty.client.ProxyConfiguration#addProxy
? Or should theorg.eclipse.jetty.client.ProxyConfiguration
itself be overridden?The text was updated successfully, but these errors were encountered: