partialzip 6.0.0

Download single files from online zip archives or list the content
Documentation
1
2
3
4
5
6
7
8
9
10
use url::Url;

/// Returns if a URL is a valid URL string supported by the library
#[must_use]
pub fn url_is_valid(url: &str) -> bool {
    Url::parse(url).is_ok_and(|url| {
        // Supported URL schemes
        ["http", "https", "ftp", "file"].contains(&url.scheme())
    })
}