[−][src]Function rpc::rpc_server::start_http
pub fn start_http<M: Metadata>(
addr: &SocketAddr,
cors_domains: Option<Vec<String>>,
allowed_hosts: Option<Vec<String>>,
handler: MetaIoHandler<M>
) -> Result<Server, Error>
Start http server asynchronously and returns result with Server
handle on success or an error.