tuweni / org.apache.tuweni.jsonrpc.methods / MethodsRouter

MethodsRouter

class MethodsRouter (source)

Constructors

<init>

MethodsRouter(methodsMap: Map<String, (JSONRPCRequest) -> JSONRPCResponse>)

Properties

methodsMap

val methodsMap: Map<String, (JSONRPCRequest) -> JSONRPCResponse>

Functions

handleRequest

fun handleRequest(request: JSONRPCRequest): JSONRPCResponse