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
Fields of Proceed
Intercept the request and respond differently.
Fields of Respond
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
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more