class CoRouterFunctionDsl
Provide a WebFlux.fn RouterFunction Coroutines Kotlin DSL created by |
|
class RouterFunctionDsl
Provide a WebFlux.fn RouterFunction Reactive Kotlin DSL created by |
suspend fun <T : Any> ServerRequest.awaitBody(): T
Non-nullable Coroutines variant of ServerRequest.bodyToMono. |
|
suspend fun <T : Any> ServerRequest.awaitBodyOrNull(): T?
Nullable Coroutines variant of ServerRequest.bodyToMono. |
|
suspend fun ServerRequest.awaitFormData(): MultiValueMap<String, String>
Coroutines variant of ServerRequest.formData. |
|
suspend fun ServerRequest.awaitMultipartData(): MultiValueMap<String, Part>
Coroutines variant of ServerRequest.multipartData. |
|
suspend fun ServerRequest.awaitPrincipal(): Principal?
Coroutines variant of ServerRequest.principal. |
|
suspend fun ServerRequest.awaitSession(): WebSession
Coroutines variant of ServerRequest.session. |
|
fun <T : Any> BodyBuilder.body(publisher: Publisher<T>): Mono<ServerResponse>
Extension for ServerResponse.BodyBuilder.body providing a fun <T : Any> BodyBuilder.body(producer: Any): Mono<ServerResponse>
Extension for ServerResponse.BodyBuilder.body providing a |
|
suspend fun <T : Any> BodyBuilder.bodyAndAwait(flow: Flow<T>): ServerResponse
Coroutines variant of ServerResponse.BodyBuilder.body with Any and
ParameterizedTypeReference parameters providing a |
|
fun <T : Any> ServerRequest.bodyToFlow(): Flow<T>
Coroutines kotlinx.coroutines.flow.Flow based variant of ServerRequest.bodyToFlux. |
|
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.
Extension for ServerResponse.BodyBuilder.body providing a
|
|
suspend fun BodyBuilder.bodyValueAndAwait(body: Any): ServerResponse
Coroutines variant of ServerResponse.BodyBuilder.bodyValue. |
|
suspend fun Builder.buildAndAwait(): RenderingResponse
Coroutines variant of RenderingResponse.Builder.build. suspend fun HeadersBuilder<out HeadersBuilder<*>>.buildAndAwait(): ServerResponse
Coroutines variant of ServerResponse.HeadersBuilder.build. |
|
fun coRouter(routes: CoRouterFunctionDsl.() -> Unit): RouterFunction<ServerResponse>
Allow to create easily a WebFlux.fn RouterFunction with a Coroutines router Kotlin DSL. |
|
fun BodyBuilder.html(): BodyBuilder!
Shortcut for setting MediaType.TEXT_HTML |
|
fun BodyBuilder.json(): BodyBuilder!
Shortcut for setting MediaType.APPLICATION_JSON |
|
operator fun <T : ServerResponse> RouterFunction<T>.plus(other: RouterFunction<T>): RouterFunction<T!>!
Equivalent to RouterFunction.and. |
|
suspend fun BodyBuilder.renderAndAwait(name: String, vararg modelAttributes: String): ServerResponse suspend fun BodyBuilder.renderAndAwait(name: String, model: Map<String, *>): ServerResponse
Coroutines variant of ServerResponse.BodyBuilder.render. |
|
fun router(routes: RouterFunctionDsl.() -> Unit): RouterFunction<ServerResponse>
Allow to create easily a WebFlux.fn RouterFunction with a Reactive router Kotlin DSL. |
|
fun BodyBuilder.sse(): BodyBuilder!
Shortcut for setting MediaType.TEXT_EVENT_STREAM |
|
fun BodyBuilder.xml(): BodyBuilder!
Shortcut for setting MediaType.APPLICATION_XML |