pub async fn run_http(
engine: Arc<RpcEngine>,
bind: &str,
token: Arc<str>,
) -> Result<SocketAddr, Error>Expand description
Bind bind (host:port; :0 for an OS-assigned ephemeral port) and
serve the HTTP transport (D8 “remote attach”) in a background task until
engine signals shutdown. Returns the actually-bound address (so a
caller that asked for port 0 can learn the real port). Every
connection is authenticated per-request via token — see
check_auth. The LOOPBACK-BY-DEFAULT policy decision is the caller’s
(see the module doc) — this fn binds whatever address it’s given.