Enum jsonrpc_http_server::RestApi [] [src]

pub enum RestApi {
    Secure,
    Unsecure,
    Disabled,
}

REST -> RPC converter state.

Variants

The REST -> RPC converter is enabled and requires Content-Type: application/json header (even though the body should be empty). This protects from submitting an RPC call from unwanted origins.

The REST -> RPC converter is enabled and does not require any Content-Type headers. NOTE: This allows sending RPCs via HTTP forms from any website.

The REST -> RPC converter is disabled.

Trait Implementations

impl Debug for RestApi
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for RestApi
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for RestApi
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RestApi
[src]