bind
inline fun <RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String?)
Content copied to clipboard
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?)
Content copied to clipboard
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?)
Content copied to clipboard
Binds a given route with a function of the receiver.
Parameters
function
a function of the receiver
method
a HTTP method
route
a route