bodyToServerSentEvents
inline fun <T : Any> ServerResponse.BodyBuilder.bodyToServerSentEvents(publisher: Publisher<T>): Mono<ServerResponse>
Deprecated
Use 'sse().body(publisher)' instead.
Replace with
sse().body(publisher)
Content copied to clipboard
Extension for ServerResponse.BodyBuilder.body providing a bodyToServerSentEvents(Publisher<T>)
variant. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
5.0