Enum jsonrpc_http_server::RequestMiddlewareAction
[−]
[src]
pub enum RequestMiddlewareAction { Proceed { should_continue_on_invalid_cors: bool, }, Respond { should_validate_hosts: bool, handler: BoxFuture<Response, Error>, }, }
Action undertaken by a middleware.
Variants
Proceed
Proceed with standard RPC handling
Respond
Intercept the request and respond differently.
Trait Implementations
impl From<Option<Response>> for RequestMiddlewareAction
[src]
impl<T> From<Option<T>> for RequestMiddlewareAction where
T: IntoFuture<Item = Response, Error = Error>,
T::Future: Send + 'static,
[src]
T: IntoFuture<Item = Response, Error = Error>,
T::Future: Send + 'static,