handle_request

Function handle_request 

Source
pub async fn handle_request<THandler: RpcHandler>(
    req: Request,
    handler: THandler,
) -> Option<Response>
Expand description

Handle the JSON-RPC Request

This will try to deserialize the payload into the request type of the handler and if successful invoke the handler.