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: Pin<Box<dyn Future<Output = Result<Response<Body>>> + Send>>, }, }
Expand description
Action undertaken by a middleware.
Variants
Proceed with standard RPC handling
Show fields
Intercept the request and respond differently.
Show fields
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RequestMiddlewareAction
impl Send for RequestMiddlewareAction
impl !Sync for RequestMiddlewareAction
impl Unpin for RequestMiddlewareAction
impl !UnwindSafe for RequestMiddlewareAction