-
Notifications
You must be signed in to change notification settings - Fork 3k
Extend HTTPClient Builder to allow setting a proxy server #10052
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
Extend HTTPClient Builder to allow setting a proxy server #10052
Conversation
amogh-jahagirdar
left a comment
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.
Thanks @harishch1998 ! I think this is close just a few nits and some additional validation I think we should add.
nastra
left a comment
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, I'll wait in case @amogh-jahagirdar has any other comments
|
@harishch1998 can you please rebase the PR and fix the merge conflict(s)? |
|
Once it's rebased, I'll run the checks and after they pass, I'll merge! Thanks for contributing @harishch1998 , and thanks @nastra for the review |
* Extend httpclientbuilder to allow setting proxy * Add tests and address comments * Fix preconditions message * Add basic authentication for proxy
0753883 to
edfade3
Compare
This PR includes code changes to extend the capability of the existing rest HTTPClient to allow setting a proxy server with basic username/password authentication. The requests made by the HTTPClient will be routed via the proxy server if the HTTPClient is configured with one. If the HTTPClient is not configured with a proxy we default to the current behavior.