I have something like this in Spring MVC code: ```...
# spring
r
I have something like this in Spring MVC code:
Copy code
@Controller
open class MyController {

    @RequestMapping("/**")
    fun mapping(req: HttpServletRequest, res: HttpServletResponse) {
       // write to res.outputStream
    }
}
I'm trying to do similar thing with Spring WebFlux:
Copy code
@Controller
open class MyController {

    @RequestMapping("/**")
    suspend fun mapping(req: ServerHttpRequest, res: ServerHttpResponse) {
       // write with res.writeAndFlushWith { }
    }
}
Will it work? Can the
mapping
function have
suspend
modifier?