-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove HttpClientConfig in favor of ResourceRetriever Bean #4478
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
Comments
This is the reason I decided to create |
I don't like having configuration directly in our service layer. Configuration belongs in the configuration. Perhaps we need to introduce an abstraction for retrieving resources / HTTPRequest that can unify the settings. That implementation can delegate to the original methods with the proper settings |
Ok let me see what I can come up with. |
@rwinch I removed Let's revisit the client abstraction for retrieving resources after we go GA. I'll leave this issue open. |
Closing since HttpClientConfig has been removed and this is now invalid |
Summary
Rather than having
HttpClientConfig
replace it with allowing the user to provide aResourceRetriever
Bean which would override the default. Users wishing to change the timeout could then provide aDefaultResourceRetriever
Bean with a different timeout.This removes configuration specific code and provides more flexibility by allowing the
ResourceRetriever
that is used to be replaced with a different implementation.Related #4477
The text was updated successfully, but these errors were encountered: