Function validate_url_security
Source pub fn validate_url_security(url: &str, require_tls: bool) -> Result<()>
Expand description
Validates that a URL uses a secure protocol (https://, wss://, etc.)
§Arguments
url - The URL to validate
require_tls - Whether to enforce TLS/SSL
§Returns
Ok if URL is valid and secure, error otherwise