Function sc_rpc_server::start_http
source ยท pub async fn start_http<M: Send + Sync + 'static>(
addrs: [SocketAddr; 2],
cors: Option<&Vec<String>>,
max_payload_in_mb: Option<usize>,
max_payload_out_mb: Option<usize>,
metrics: Option<RpcMetrics>,
rpc_api: RpcModule<M>,
rt: Handle,
) -> Result<ServerHandle, Box<dyn StdError + Send + Sync>>
Expand description
Start HTTP server listening on given address.