-
Notifications
You must be signed in to change notification settings - Fork 556
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
[client-v2] Proxy support #1748
Conversation
@@ -444,6 +450,12 @@ public Builder useNewImplementation(boolean useNewImplementation) { | |||
return this; | |||
} | |||
|
|||
public Builder setHttpCookiesEnabled(boolean enabled) { | |||
//TODO: extract to settings string constants | |||
this.configuration.put("client.http.cookies_enabled", String.valueOf(enabled)); |
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.
What is that used for?
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.
- sticky sessions
- some enterprise proxies like F5 that store routing information in cookies
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.
actually there may be opposite case when cookies should not be preserved to avoid sticky session when proxy behavior may not be changed.
public HttpAPIClientHelper(Map<String, String> configuration) { | ||
this.chConfiguration = configuration; | ||
this.httpClient = createHttpClient(configuration, null); | ||
this.httpClient = createHttpClient(); | ||
this.baseRequestConfig = RequestConfig.custom() | ||
.setConnectionRequestTimeout(1000, TimeUnit.MILLISECONDS) |
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.
Should it be configurable?
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.
Yes. Added more configuration parameters. Planning to add more later.
Quality Gate passedIssues Measures |
Summary
Checklist
Delete items not relevant to your PR: