rpc

fun Routing.rpc(path: String, httpHandler: Deferred<HttpTransport>)

Serves an RPC endpoint.

Parameters

path

url path where RPC will be served

httpHandler

handler for the incoming RPC calls