-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Upgrade RestTemplate to HttpClient 5 #28925
Comments
Hi @bclozel, I was investigating this issue, and I have an idea through which we can support both httpclient4 and httpclient5. We can create a counterpart of the |
We've discussed this as a team and we decided to migrate the existing |
Not directly related, but: I can't persuade httpclient 4.x not to spam the log with DEBUG messages, and no logging configuration seems to help. I could configure httpclient 5 to stop spamming, as it uses SLF4J. Any hints? |
@pwhittlesea It seems the link you give under 'here' has gone away, can it now be replaced with: |
I dont know how to update httpclient from 4 to 5, HttpComponentsClientHttpRequestFactory |
@makewheels please ask a question on StackOverflow. |
HttpComponentsClientHttpRequestFactory receives classic.HttpClient but I can only create org.apache.http.impl.client.CloseableHttpClient So I am also unable to create RestTemplate based on httpclient5. |
You will need to upgrade your library to version 5. See https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/org/apache/hc/client5/http/impl/classic/CloseableHttpClient.html |
Affects: 5.3.20
httpclient was last updated on Oct 06 2020 and was superseded by httpclient5 which is being actively maintained.
See the upgrade guide here.
The
HttpComponentsClientHttpRequestFactory
class relies onhttpclient
and is not compatible withhttpclient5
.As
httpclient
version 4 is no longer supported it would be good to have RequestFactory support for version 5.The text was updated successfully, but these errors were encountered: