DownloadRequest
constructor(id: String, url: String, savePath: String, expectedChecksum: String? = null, headers: Map<String, String> = emptyMap(), resumable: Boolean = true)
Parameters
id
Unique task identifier.
url
URL to download from.
savePath
Local file path to save the downloaded file.
expectedChecksum
Optional SHA-256 checksum for verification (format: "sha256:hex").
headers
Optional HTTP headers to include.
resumable
Whether to support resume on interrupted downloads.