DownloadRequest
Constructors
Types
Link copied to clipboard
object Companion
Constants and factory functions of DownloadRequest.
Properties
Link copied to clipboard
final file path. Bytes are written to "$destination.part" and atomically moved here only after the size and SHA-256 checks pass, so destination is never partially written.
Link copied to clipboard
lowercase or uppercase hex SHA-256; when set, a mismatch deletes the partial file and fails with ChecksumMismatchException, and an existing destination is reused only if it matches.
Link copied to clipboard
when set, a different size (announced by the server or written) fails with DownloadSizeMismatchException.
Link copied to clipboard
Path of the partial file used while downloading.