Sergey Galkin opened SPR-17175 and commented

We are heavily using RestTemplate and recently received requirement to use SOCKS5 proxy with authentication. So our requirements list for http client is: - configurable timeout - socks5 proxy with auth - client ssl certificates

After researching available http clients I see following possible solutions: - replace RestTemplate with reactive WebClient - create ReactiveWebClientRequestFactory and use it with RestTemplate - add proxy capability to Netty4ClientHttpRequestFactory and use it with existing RestTemplate

Last option requires minimal changes. The only downside is that Netty4ClientHttpRequestFactory is deprecated. Is it worth creating PR for this improvement?


Affects: 5.0.8

Comment From: spring-projects-issues

Rossen Stoyanchev commented

What exactly is the change? Obviously the class is deprecated and we don't want to add features that may require further evolution.

Comment From: spring-projects-issues

Sergey Galkin commented

Here is possible implementation https://github.com/spring-projects/spring-framework/pull/1928

Comment From: bclozel

Netty4ClientHttpRequestFactory has been deprecated as of 5.0 and in general we don't want to invest time in new features in RestTemplate, as it's been put in maintenance mode.

Developers should now rely on WebClient for new use cases and suggest improvements for it. I'm closing this issue and the related PR as a result.