-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
JDK 11 HttpClient integration with WebClient #23432
Conversation
@Julien-Eyraud Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@Julien-Eyraud Thank you for signing the Contributor License Agreement! |
Cross-linking to #17778 that this depends on. |
@Julien-Eyraud amazing feature :) would be awesome to resolve conflicts and see this merged... |
I've created a Spring Boot starter using the code from this PR: https://github.com/candrews/java-httpclient-webclient-spring-boot-starter. It provides a really simple way to configure WebClient to use Java 11's HttpClient; just add the dependency (which I've published to Maven Central) to your project and you're done. Hopefully, it helps those of us who really would like this feature hold out until it lands in Spring itself :) |
So, is this still happening? |
I don't know I can update the PR to fix conflict and change the target branch. It's up to the maintainer now. |
The |
This a simple implementation of ClientHttpResponse that levrage JDK 11 HttpClient. Closes spring-projectsgh-21014
461f6d1
to
d1f3831
Compare
I've rebase my branch on main. I've updated the JdkClientHttpResponse#getCookies with a duplicate from JettyClientHttpResponse#parseSameSite. I didn't know where to but it to use a common code. I also updated the documentation. |
I just saw your JdkClientHttpConnector pullrequest. A problem is that child classes of AbstractWebClientReactiveOAuth2AccessTokenResponseClient Or at least add a Constructor to AbstractWebClientReactiveOAuth2AccessTokenResponseClient which takes a preinitialized WebClient instead of creating a new one. Sincerely |
It's an interesting point @rk99d339. I'll wait for maintainer feedback. I hope I'll be able to merge soon. |
Hi @rstoyanchev do you think I can have a review soon ? Or this will be discard ? What do you think about rk99d339's comment ? |
Yes, I'm reviewing this and should have an update soon. |
This is now in |
This a simple implementation of ClientHttpResponse that levrage
JDK 11 HttpClient.
Closes gh-21014