Skip to main content

Module jsonrpc

Module jsonrpc 

Source
Expand description

JSON-RPC protocol support for Spikard HTTP

This module provides JSON-RPC 2.0 protocol support including method registration, handler lookup, and metadata management.

Re-exports§

pub use http_handler::JsonRpcState;
pub use http_handler::handle_jsonrpc;
pub use method_registry::JsonRpcMethodRegistry;
pub use method_registry::MethodExample;
pub use method_registry::MethodMetadata;
pub use protocol::JsonRpcErrorResponse;
pub use protocol::JsonRpcRequest;
pub use protocol::JsonRpcResponse;
pub use protocol::JsonRpcResponseType;
pub use protocol::error_codes;
pub use protocol::validate_method_name;
pub use router::JsonRpcRequestOrBatch;
pub use router::JsonRpcRouter;

Modules§

http_handler
JSON-RPC HTTP handler for processing JSON-RPC requests over HTTP
method_registry
JSON-RPC method registry for handler registration and lookup
protocol
JSON-RPC 2.0 Protocol Types
router
JSON-RPC request router for handling single and batch requests

Structs§

JsonRpcConfig
JSON-RPC server configuration