Add missing KDoc comments

This commit is contained in:
Sebastien Deleuze 2019-03-25 09:33:03 +01:00
parent 67c8d3753b
commit 8494c7a75a
1 changed files with 6 additions and 0 deletions

View File

@ -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> {
init()
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>) =
this.and(other)