open class RouterFunctionDsl
Provide a RouterFunction Kotlin DSL in order to be able to write idiomatic Kotlin code. |
fun <T : Any> BodyBuilder.body(publisher: Publisher<T>): Mono<ServerResponse>
Extension for ServerResponse.BodyBuilder.body providing a |
|
fun <T : Any> ServerRequest.bodyToFlux(): Flux<T>
Extension for ServerRequest.bodyToFlux providing a |
|
fun <T : Any> ServerRequest.bodyToMono(): Mono<T>
Extension for ServerRequest.bodyToMono providing a |
|
fun <T : Any> BodyBuilder.bodyToServerSentEvents(publisher: Publisher<T>): Mono<ServerResponse>
Extension for ServerResponse.BodyBuilder.body providing a
|
|
fun router(routes: RouterFunctionDsl.() -> Unit): RouterFunction<ServerResponse>
Allow to create easily a |