Package-level declarations

HTTP client channel, connection factory, and error-mapping utilities for ktor-based clients.

Server-side ktor routing integration that maps incoming HTTP requests to ksrpc service calls.

Functions

Link copied to clipboard
inline fun <T : RpcService> Routing.serveHttp(basePath: String, service: T, env: KsrpcEnvironment<String>, errorCodeToHttpStatus: Map<Int, Int> = DEFAULT_KSRPC_ERROR_CODE_TO_HTTP_STATUS)
fun Routing.serveHttp(basePath: String, channel: SerializedChannel<String>, env: KsrpcEnvironment<String>, errorCodeToHttpStatus: Map<Int, Int> = DEFAULT_KSRPC_ERROR_CODE_TO_HTTP_STATUS)
fun Routing.serveHttp(basePath: String, serializedService: SerializedService<String>, env: KsrpcEnvironment<String>, errorCodeToHttpStatus: Map<Int, Int> = DEFAULT_KSRPC_ERROR_CODE_TO_HTTP_STATUS)