Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve documentation on reactive types for ResponseEntity [SPR-17400] #21933
The documentation of Spring WebFlux Contoller Style is not proper and in general give three
example of using it:
But what if I have Flux and Mono and I have custom headers to set, then what I have to do
no comment on that. I have seen many example on internet no one sure on that abd doing
the things as per their wish for example:
What is the correct way of doing it?? Please improve the documentation to cover these cases.
Or Provide the Support for Mono And Flux in ResponseEntity itself like:
Its a blocker in migrating projects in Spring MVC to Spring Flux. Till the time documentation
or support improvement is done, Please provide the correct solution in current situation.
All these cases are properly covered for functional style and should be properly covered for
controller style as well.
Affects: 5.0.10, 5.1.1
Backported to: 5.0.11
Rossen Stoyanchev commented
Thank you for raising this point. I do see that the section on ResponseEntity is lacking in detail around that. The fact is that WebFlux supports all combinations shown above.
Keep in mind however there should be no blocking. For example