Skip to main content

Interface: DownloadOptions

Properties​

cancellationToken​

readonly cancellationToken: CancellationToken


headers?​

readonly optional headers?: OutgoingHttpHeaders | null


maxSize?​

readonly optional maxSize?: number | null

The most bytes a download accepts (electron-updater sets it to the size of the file in the update info for a full download): once more arrive, the download fails with ERR_UPDATER_DOWNLOAD_SIZE_EXCEEDED and its request is aborted. Applies only when it is a number of at least 0: any other value, such as a size of another type read from a manifest, sets no limit of its own.


onProgress?​

optional onProgress?: (progress) => void

Parameters​

progress​

ProgressInfo

Returns​

void


ownHeaders?​

readonly optional ownHeaders?: OutgoingHttpHeaders | null

The request's own headers, part of headers too: see ApiRequestOptions.ownHeaders.


sha2?​

readonly optional sha2?: string | null


sha512?​

readonly optional sha512?: string | null