Expand description
Simple HTTP/HTTPS download functionality.
This module provides basic download capabilities with automatic retry, progress tracking, and ISO integrity verification.
For advanced features like parallel connections and resume support,
see AdvancedDownloader.
§Example
use kget::{download, DownloadOptions, ProxyConfig, Optimizer};
let options = DownloadOptions {
quiet_mode: false,
output_path: Some("./file.zip".to_string()),
verify_iso: false,
};
download(
"https://example.com/file.zip",
ProxyConfig::default(),
Optimizer::new(),
options,
None,
).unwrap();Functions§
- check_
disk_ space - Check if there’s enough disk space for the download.
- download
- Download a file from a URL with automatic retry and progress tracking.
- validate_
filename - Validate that a filename is safe and valid.
- verify_
iso_ integrity - Verify the integrity of an ISO file by calculating its SHA-256 hash.