Package org.springframework.web.servlet.function

Types

RouterFunctionDsl
Link copied to clipboard
class RouterFunctionDsl
Provide a WebMvc.

Functions

attributeOrNull
Link copied to clipboard
fun ServerRequest.attributeOrNull(name: String): Any?
Nullable variant of ServerRequest.attribute
body
Link copied to clipboard
inline fun <T : Any> ServerRequest.body(): T
Extension for ServerRequest.body providing a body<Foo>() variant leveraging Kotlin reified type parameters.
bodyWithType
Link copied to clipboard
inline fun <T : Any> ServerResponse.BodyBuilder.bodyWithType(body: T): ServerResponse
Extension for ServerResponse.BodyBuilder.body providing a variant leveraging Kotlin reified type parameters.
contentLengthOrNull
Link copied to clipboard
fun ServerRequest.Headers.contentLengthOrNull(): Long?
contentTypeOrNull
Link copied to clipboard
fun ServerRequest.Headers.contentTypeOrNull(): MediaType?
paramOrNull
Link copied to clipboard
fun ServerRequest.paramOrNull(name: String): String?
Nullable variant of ServerRequest.param
plus
Link copied to clipboard
operator fun <T : ServerResponse> RouterFunction<T>.plus(other: RouterFunction<T>): RouterFunction<T>
Equivalent to RouterFunction.and.
principalOrNull
Link copied to clipboard
fun ServerRequest.principalOrNull(): Principal?
Nullable variant of ServerRequest.param
remoteAddressOrNull
Link copied to clipboard
fun ServerRequest.remoteAddressOrNull(): InetSocketAddress?
Nullable variant of ServerRequest.remoteAddress
router
Link copied to clipboard
fun router(routes: RouterFunctionDsl.() -> Unit): RouterFunction<ServerResponse>
Allow to create easily a WebMvc.