KVService Binder
abstract class KVServiceBinder<T, RH, WH>(deSerializer: ObjectDeSerializer, routeNameGenerator: NameGenerator?)
Content copied to clipboard
Binds HTTP calls to kotlin functions
Parameters
T
the receiver of bound functions
RH
the platform specific request handler
WH
the platform specific websocket handler
Constructors
KVServiceBinder
Link copied to clipboard
fun KVServiceBinder(deSerializer: ObjectDeSerializer = kotlinxObjectDeSerializer(), routeNameGenerator: NameGenerator? = null)
Content copied to clipboard
Functions
bind
Link copied to clipboard
Binds a given web socket connection with a function of the receiver.
inline fun <RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String? = null)
Content copied to clipboard
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String? = null)
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? = null)
Content copied to clipboard
Binds a given route with a function of the receiver.
bind Tabulator Remote
Link copied to clipboard
bind Websocket
Link copied to clipboard
create Request Handler
Link copied to clipboard
Properties
deSerializer
Link copied to clipboard
routeMapRegistry
Link copied to clipboard
webSocketRequests
Link copied to clipboard