K V Service 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
the receiver of bound functions
Functions
bind
Link copied to clipboard
bindTabulatorRemote
Link copied to clipboard
inline fun <RET> bindTabulatorRemote(noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>, route: String?)
Content copied to clipboard
bindWebsocket
Link copied to clipboard
createRequestHandler
Link copied to clipboard
abstract fun <RET> createRequestHandler(method: HttpMethod, function: suspend T.(params: List<String?>) -> RET, serializer: KSerializer<RET>): RH
Content copied to clipboard
Properties
deSerializer
Link copied to clipboard
routeMapRegistry
Link copied to clipboard
webSocketRequests
Link copied to clipboard