pub fn validate_rpc_url(
url_str: &str,
) -> Result<Option<ValidationWarning>, ValidationError>Expand description
Validate an RPC URL.
Returns Ok(None) for a clean HTTPS URL, Ok(Some(InsecureHttp)) when
plain HTTP is used on a non-localhost host, or an appropriate
Err(ValidationError) on failure.