pub trait RequestMiddleware:
Send
+ Sync
+ 'static {
// Required method
fn process(&self, req: &Request) -> MiddlewareAction;
}
Expand description
Middleware to intercept server requests. You can either terminate the request (by returning a response) or just proceed with standard JSON-RPC handling.
Required Methods§
Sourcefn process(&self, req: &Request) -> MiddlewareAction
fn process(&self, req: &Request) -> MiddlewareAction
Process a request and decide what to do next.