No luck with this ... I've finally thrown this ann...
# spring
r
No luck with this ... I've finally thrown this annotated controller stuff away completely and moved to functional approach. It works fine now 🙂
s
Why do you want to use low level
ServerHttpResponse
API, why do you simply return values in suspending functions like shown in https://github.com/sdeleuze/spring-boot-coroutines-demo ? Did you read the documentation which is now provided with Coroutines by default on https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#spring-webflux.
r
I've noticed your responses to my questions just now. Thx for it.
For clarification, I needed low level access to request and response because I was integrating my framework with Spring Webflux. It's quite complicated code, which dynamically creates and handles spring routes with a lot of suspending, inline functions and reified type parameters 😉 As I said earlier - I've moved to functional approach and everything works as it should.