Module jsonrpsee_core::middleware
source · [−]Available on crate feature
server
only.Expand description
Middleware for jsonrpsee
servers.
Structs
Enums
The type JSON-RPC v2 call, it can be a subscription, method call or unknown.
Traits
Defines a middleware specifically for HTTP requests with callbacks during the RPC request life-cycle. The primary use case for this is to collect timings for a larger metrics collection solution.
Defines a middleware specifically for WebSocket connections with callbacks during the RPC request life-cycle. The primary use case for this is to collect timings for a larger metrics collection solution.