body
inline fun <T : Any> ServerResponse.BodyBuilder.body(publisher: Publisher<T>): Mono<ServerResponse>
Content copied to clipboard
Extension for ServerResponse.BodyBuilder.body providing a body(Publisher<T>)
variant. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
5.0
inline fun <T : Any> ServerResponse.BodyBuilder.body(producer: Any): Mono<ServerResponse>
Content copied to clipboard
Extension for ServerResponse.BodyBuilder.body providing a body<T>(Any)
variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
5.2