class RouterFunctionDsl
Provide a WebMvc.fn RouterFunction Reactive Kotlin DSL created by |
fun ServerRequest.attributeOrNull(name: String): Any?
Nullable variant of ServerRequest.attribute |
|
fun <T : Any> ServerRequest.body(): T
Extension for ServerRequest.body providing a |
|
fun <T : Any> BodyBuilder.bodyWithType(body: T): ServerResponse!
Extension for ServerResponse.BodyBuilder.body providing a variant leveraging Kotlin reified type parameters. |
|
fun Headers.contentLengthOrNull(): Long?
Nullable variant of ServerRequest.Headers.contentLength |
|
fun Headers.contentTypeOrNull(): MediaType?
Nullable variant of ServerRequest.Headers.contentType |
|
fun ServerRequest.paramOrNull(name: String): String?
Nullable variant of ServerRequest.param |
|
operator fun <T : ServerResponse> RouterFunction<T>.plus(other: RouterFunction<T>): RouterFunction<T!>!
Equivalent to RouterFunction.and. |
|
fun ServerRequest.principalOrNull(): Principal?
Nullable variant of ServerRequest.param |
|
fun ServerRequest.remoteAddressOrNull(): InetSocketAddress?
Nullable variant of ServerRequest.remoteAddress |
|
fun router(routes: RouterFunctionDsl.() -> Unit): RouterFunction<ServerResponse>
Allow to create easily a WebMvc.fn RouterFunction with a Reactive router Kotlin DSL. |