Migrate to ApacheHttpClient 5.x deprecated methods from 4.x
MSALMigrates deprecated methods to their equivalent ones in 5.x.
org. openrewrite. apache. httpclient5. UpgradeApacheHttpClient_5_DeprecatedMethodsmod run . --recipe= org. openrewrite. apache. httpclient5. UpgradeApacheHttpClient_5_DeprecatedMethodsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change method name
org.apache.hc.client5.http.config.RequestConfig.Builder setSocketTimeout(int)tosetResponseTimeout - Change method name
org.apache.hc.client5.http.impl.classic.HttpClientBuilder setRetryHandler(..)tosetRetryStrategy - Change method name
org.apache.http.HttpMessage getAllHeaders()togetHeaders - Change method name
org.apache.hc.client5.http.classic.methods.HttpUriRequestBase getURI()togetUri - Change method name
org.apache.hc.client5.http.classic.methods.HttpUriRequestBase releaseConnection()toreset - Change method name
org.apache.hc.client5.http.auth.AuthScheme getSchemeName()togetName