Function sc_rpc_server::start_http[][src]

pub fn start_http<M: PubSubMetadata + Default>(
    addr: &SocketAddr,
    thread_pool_size: Option<usize>,
    cors: Option<&Vec<String>>,
    io: RpcHandler<M>,
    maybe_max_payload_mb: Option<usize>
) -> Result<Server>
Expand description

Start HTTP server listening on given address.

Note: Only available if not(target_os = "unknown").