bind

inline fun <RET> bind(noinline function: suspend T.() -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: <Error class: unknown class>, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: <Error class: unknown class>, route: String?)

Binds a given route with a function of the receiver.

Parameters

function

a function of the receiver

method

a HTTP method

route

a route


inline fun <PAR1 : Any, PAR2 : Any> bind(noinline function: suspend T.(<Error class: unknown class><PAR1>, <Error class: unknown class><PAR2>) -> Unit, route: String?)

Binds a given web socket connection with a function of the receiver.

Parameters

function

a function of the receiver

route

a web socket route


inline fun <PAR : Any> bind(noinline function: suspend T.(<Error class: unknown class><PAR>) -> Unit, route: String?)

Binds a given server-sent events connection with a function of the receiver.

Parameters

function

a function of the receiver

route

a server-sent events route