Package-level declarations

Types

Link copied to clipboard

Provide a WebFlux.fn RouterFunction Coroutines Kotlin DSL created by coRouter { } in order to be able to write idiomatic Kotlin code.

Link copied to clipboard

Provide a WebFlux.fn RouterFunction Reactive Kotlin DSL created by router { } in order to be able to write idiomatic Kotlin code.

Functions

Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : Any> ServerRequest.awaitBody(): T

Non-nullable Coroutines variant of ServerRequest.bodyToMono.

suspend fun <T : Any> ServerRequest.awaitBody(clazz: KClass<T>): T

KClass non-nullable Coroutines variant of ServerRequest.bodyToMono. Please consider awaitBody<Foo> variant if possible.

Link copied to clipboard
inline suspend fun <T : Any> ServerRequest.awaitBodyOrNull(): T?

Nullable Coroutines variant of ServerRequest.bodyToMono.

suspend fun <T : Any> ServerRequest.awaitBodyOrNull(clazz: KClass<T>): T?

KClass nullable Coroutines variant of ServerRequest.bodyToMono. Please consider awaitBodyOrNull<Foo> variant if possible.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Coroutines variant of ServerRequest.principal.

Link copied to clipboard

Coroutines variant of ServerRequest.session.

Link 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.

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.

Link copied to clipboard

Coroutines variant of ServerResponse.BodyBuilder.body with Any and ParameterizedTypeReference parameters providing a bodyAndAwait(Flow<T>) variant. This extension is not subject to type erasure and retains actual generic type arguments.

Link copied to clipboard
inline fun <T : Any> ServerRequest.bodyToFlow(): Flow<T>
fun <T : Any> ServerRequest.bodyToFlow(clazz: KClass<T>): Flow<T>

KClass coroutines kotlinx.coroutines.flow.Flow based variant of ServerRequest.bodyToFlux. Please consider bodyToFlow<Foo> variant if possible.

Link copied to clipboard
inline fun <T : Any> ServerRequest.bodyToFlux(): Flux<T>

Extension for ServerRequest.bodyToFlux providing a bodyToFlux<Foo>() variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

Link copied to clipboard
inline fun <T : Any> ServerRequest.bodyToMono(): Mono<T>

Extension for ServerRequest.bodyToMono providing a bodyToMono<Foo>() variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

Link 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.

Link copied to clipboard

Allow to create easily a WebFlux.fn RouterFunction with a Coroutines router Kotlin DSL.

Link copied to clipboard

Shortcut for setting MediaType.TEXT_HTML Content-Type header.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Allow to create easily a WebFlux.fn RouterFunction with a Reactive router Kotlin DSL.

Link copied to clipboard
Link copied to clipboard