pub fn is_valid_url(s: &str) -> boolExpand description
Returns true if s looks like a valid HTTP(S) URL.
ยงExamples
use ssg::cmd::is_valid_url;
assert!(is_valid_url("https://example.com"));
assert!(is_valid_url("http://example.com:8080/path"));
assert!(!is_valid_url("ftp://example.com"));
assert!(!is_valid_url("http://localhost"));