Enum jsonrpc_http_server::RequestMiddlewareAction [−][src]
pub enum RequestMiddlewareAction { Proceed { should_continue_on_invalid_cors: bool, request: Request<Body>, }, Respond { should_validate_hosts: bool, response: Box<dyn Future<Item = Response<Body>, Error = Error> + Send>, }, }
Action undertaken by a middleware.
Variants
Proceed with standard RPC handling
Show fields
Intercept the request and respond differently.
Show fields
Trait Implementations
impl From<Request<Body>> for RequestMiddlewareAction
[src]
impl From<Request<Body>> for RequestMiddlewareAction
[src]impl From<Response<Body>> for RequestMiddlewareAction
[src]
impl From<Response<Body>> for RequestMiddlewareAction
[src]