pub fn run(
url: &str,
deflate_opt: &HttpDeflateOption<'_>,
checksum: Option<&ChecksumSource<'_>>,
) -> Result<PathBuf>Expand description
Downloads a file from the given URL with the specified HttpDeflateOption.
The file is always downloaded to a temporary location first. If a ChecksumSource is provided,
the SHA256 checksum is verified before processing. If checksum is None, processing proceeds
without verification.
ยงErrors
- The HTTP request fails or returns a non-success status.
- Decompression or archive extraction fails.
- A filesystem operation (create/read/write/remove) fails.
- Checksum verification fails (mismatch).
- Creating a temporary directory fails.