-
Notifications
You must be signed in to change notification settings - Fork 788
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
Add HttpClientBuilderCustomizer interface #890
Conversation
httpClientProperties.getHc5().getConnectionRequestTimeoutUnit())) | ||
.build()); | ||
|
||
HttpClientBuilderCustomizer customizer = customizerProvider.getIfAvailable(); |
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.
Usually there is a list of this type of bean so there can be multiple contributions
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.
Done. thx fast feedback!
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #890 +/- ##
=========================================
Coverage 77.09% 77.10%
- Complexity 582 583 +1
=========================================
Files 71 71
Lines 2296 2297 +1
Branches 308 308
=========================================
+ Hits 1770 1771 +1
Misses 357 357
Partials 169 169
|
I hope to ship this PR in the next release. 🙏 |
Thanks for the PR, @bananayong . Could you please add a test and document the feature? |
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 for the PR @bananayong. Please add a test and document the feature.
@OlgaMaciaszek Thank your feedback! |
Is there any progress? @OlgaMaciaszek |
If I need more work, please let me know. |
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, @bananayong, looks good. Please just update the license entries to -2023
and add your full name with @author
tag to the javadocs of the classes you've changed - then it'll be ready to merge.
@OlgaMaciaszek Done. Please review 🙇 |
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, @bananayong - have noticed one more place lacking documentation. Please see the comment.
...ain/java/org/springframework/cloud/openfeign/clientconfig/HttpClient5FeignConfiguration.java
Show resolved
Hide resolved
In addition to leveraging existing Spring Cloud settings, provide the ability for a user to customize settings.
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, @bananayong. LGTM.
Hi, Olga.
I always thank for your efforts.
I would like to provide the ability for a user to customize settings, In addition to leveraging existing Spring Cloud settings.
In the previous version, ApacheHttpClientFactory interface existed. So I could customize HttpClientBuilder additionally.
But, in the current version, there is no method for HttpClientBuilder configurations.
Thank you!