Browse Source

Add missing KDoc comments

pull/22656/head
Sebastien Deleuze 6 years ago
parent
commit
8494c7a75a
  1. 6
      spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt

6
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt

@ -395,6 +395,9 @@ open class CoRouterFunctionDsl(private val init: (CoRouterFunctionDsl.() -> Unit
} }
} }
/**
* Return a composed routing function created from all the registered routes.
*/
override fun invoke(): RouterFunction<ServerResponse> { override fun invoke(): RouterFunction<ServerResponse> {
init() init()
return builder.build() return builder.build()
@ -475,6 +478,9 @@ open class CoRouterFunctionDsl(private val init: (CoRouterFunctionDsl.() -> Unit
} }
/**
* Equivalent to [RouterFunction.and].
*/
operator fun <T: ServerResponse> RouterFunction<T>.plus(other: RouterFunction<T>) = operator fun <T: ServerResponse> RouterFunction<T>.plus(other: RouterFunction<T>) =
this.and(other) this.and(other)

Loading…
Cancel
Save