fn check_url(url: &Url, ctx: &CheckContext) -> bool {
    match url.scheme() {
        "file" => check_file_url(url, ctx),
        "http" | "https" => check_http_url(url, ctx),
        scheme @ "javascript" => {
            debug!("Not checking URL scheme {:?}", scheme);
            true
        }
        other => {
            debug!("Unrecognized URL scheme {:?}", other);
            true
        }
    }
}
/// Check a single URL for availability. Returns `false` if it is unavailable.
Check a single URL for availability. Returns `false` if it is unavailable.
Check a single URL for availability . Returns ` false ` if it is unavailable .
fn check_url(url: &Url, ctx: &CheckContext) -> bool {
    match url.scheme() {
        "file" => check_file_url(url, ctx),
        "http" | "https" => check_http_url(url, ctx),
        scheme @ "javascript" => {
            debug!("Not checking URL scheme {:?}", scheme);
            true
        }
        other => {
            debug!("Unrecognized URL scheme {:?}", other);
            true
        }
    }
}
fn check_url ( url : & Url , ctx : & CheckContext ) -> bool { match url . scheme ( ) { " " => check_file_url ( url , ctx ) , " " | " " => check_http_url ( url , ctx ) , scheme @ " " => { debug ! ( " " scheme ) ; true } other => { debug ! ( " " other ) ; true } } }
Check a single URL for availability.
Check a single URL for availability .
url
&Url
ctx
&CheckContext