Module axum_utils

Source
Available on crate feature axum only.
Expand description

Axum JSONRPC handlers.

Functionsยง

handle_jsonrpc
Axum handler for HTTP POST JSONRPC requests.
handle_jsonrpc_ws
Axum handler for JSONRPC over WebSocket.
jsonrpc_router
Returns an axum Router that handles JSONRPC requests at the specified path. Both HTTP and WebSocket are supported.