Jonas Bark
09/23/2019, 7:54 AMcoRouter context I'd like to use a TEXT_EVENT_STREAM like this:
val flux: Flux<String> = loggingThing()
return ok()
.contentType(MediaType.TEXT_EVENT_STREAM)
.body(result, String::class.java)
but coRouter expects a ServerResponse and not a Mono<ServerResponse>. bodyAndAwait wouldn't work with Please specify the element class by using body(Publisher, Class). Is such a thing supported out of the box with coRouter DSL or should I return to a standard router here?
Using Spring Boot 2.1.6 (and coRouter implementation from 2.2.0-M6 I think)Dennis Schröder
09/23/2019, 9:14 AMrouter DSL instead and get the Mono you`ll need.sdeleuze
09/23/2019, 9:16 AMsdeleuze
09/23/2019, 9:17 AMsdeleuze
09/23/2019, 9:18 AMbodyAndAwait for that use case.sdeleuze
09/23/2019, 9:18 AMbodyValueAndAwait if you are using plain values.Jonas Bark
09/23/2019, 9:35 AM