anvil_server::handler

Function handle_request

Source
pub async fn handle_request<Handler: RpcHandler>(
    req: Request,
    handler: Handler,
) -> 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