Skip to content
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

Document synchronous use of WebClient [SPR-17644] #22173

Closed
spring-projects-issues opened this issue Jan 7, 2019 · 1 comment
Closed

Document synchronous use of WebClient [SPR-17644] #22173

spring-projects-issues opened this issue Jan 7, 2019 · 1 comment
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Pavlo Morozov opened SPR-17644 and commented

ResTemplate javaDoc says it will be deprecated

https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html

Also this page mentions the new class to call over HTTP. It is possible to use it in both synchronous and asynchronous ways:

WebClient offers a modern alternative to the RestTemplate with efficient support for both sync and async, as well as streaming scenarios

Though I not see in javaDoc for WebClient any note about synchronous way it works:

https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/reactive/function/client/WebClient.html

 

So it is not clear how to use WebClient in synchronous way?

 

Also I have wider question related on StackOverflow, any help would be nice: https://stackoverflow.com/questions/54078309/spring-boot-http-call-to-remote-web-service


Affects: 5.1.3

@spring-projects-issues spring-projects-issues added status: waiting-for-triage An issue we've not yet triaged or decided on type: documentation A documentation task and removed type: documentation A documentation task labels Jan 11, 2019
@rstoyanchev rstoyanchev added this to the 5.1.5 milestone Jan 18, 2019
@rstoyanchev rstoyanchev added type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 18, 2019
@rstoyanchev rstoyanchev self-assigned this Jan 18, 2019
@rstoyanchev rstoyanchev changed the title JavaDoc for RestTemplate seems out of order with WebClient [SPR-17644] Document synchronous use of WebClient [SPR-17644] Jan 18, 2019
@pavlomorozov
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

3 participants