Enum jsonrpc_http_server::RestApi [−][src]
pub enum RestApi { Secure, Unsecure, Disabled, }
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for RestApi
impl UnwindSafe for RestApi
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more