Small question regarding using Mono<ServerResponse> vs Mono<ResponseEntity<MyPojo>> as return type please.
I am seeing examples where sometimes, Mono<ServerResponse> is used as return type in a functional route from Spring Webflux.
But also seeing examples where sometimes, Mono<ResponseEntity<MyPojo>> is used as return type in a Spring functional route.
Moreover, there are many examples where Mono<ResponseEntity<MyPojo>> is used in the @Controller, @RequestMapping (Get, Post mapping etc...) as return type.
But there are also few examples with returning Mono<ServerResponse>.
May I ask, what is the difference between returning either one please?