Trait jsonrpc_http_server::RequestMiddleware [−][src]
Allows to intercept request and handle it differently.
Required methods
fn on_request(&self, request: Request<Body>) -> RequestMiddlewareAction
[src]
Takes a request and decides how to proceed with it.
Implementors
impl<F> RequestMiddleware for F where
F: Fn(Request<Body>) -> RequestMiddlewareAction + Sync + Send + 'static,
[src]
F: Fn(Request<Body>) -> RequestMiddlewareAction + Sync + Send + 'static,