Skip to content

Add a new HttpConnector based on Java 11 HttpClient #27561

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

Closed
hantsy opened this issue Oct 14, 2021 · 1 comment
Closed

Add a new HttpConnector based on Java 11 HttpClient #27561

hantsy opened this issue Oct 14, 2021 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@hantsy
Copy link
Contributor

hantsy commented Oct 14, 2021

Currently there are some HTTP connectors existed, but most of them depends on 3rd party libs, such as Apache HttpClientComponets, Reactor/Netty, OKHttp etc.

Java 11 introduced a new Reactive HttpClient based on Java 9 Flow API. It is better to add a new HTTP Connector based on this client and make it as the default HTTP client when using it in both blocking client and reactive client(eg. RestTemplate, reactive WebClient).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 14, 2021
@bclozel
Copy link
Member

bclozel commented Oct 15, 2021

RestTemplate is now in maintenance mode, so I don't think we should change the default ClientHttpRequestFactory to using this new client implementation since it should change behavior and add no benefit without changing RestTemplate's API.

Now the WebClient connector support is already implemented and scheduled in #23432.

I'm closing this issue as a duplicate as a result.

@bclozel bclozel closed this as completed Oct 15, 2021
@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants