Enum jsonrpc_http_server::RequestMiddlewareAction [] [src]

pub enum RequestMiddlewareAction {
    Proceed {
        should_continue_on_invalid_cors: bool,
        request: Request,
    },
    Respond {
        should_validate_hosts: bool,
        response: Box<Future<Item = Response, Error = Error> + Send>,
    },
}

Action undertaken by a middleware.

Variants

Proceed with standard RPC handling

Fields of Proceed

Should the request be processed even if invalid CORS headers are detected? This allows for side effects to take place.

The request object returned

Intercept the request and respond differently.

Fields of Respond

Should standard hosts validation be performed?

a future for server response

Trait Implementations

impl From<Response> for RequestMiddlewareAction
[src]

[src]

Performs the conversion.

impl From<Response> for RequestMiddlewareAction
[src]

[src]

Performs the conversion.

impl From<Request> for RequestMiddlewareAction
[src]

[src]

Performs the conversion.