Interface DownloadOptions
🏷️ Properties
abortSignal
abortSignal: AbortSignal
The user abort signal to abort the download
Defined in: packages/file-transfer/download.ts:57
agent
agent: DownloadAgent
The download agent Inherited from: DownloadBaseOptions.agent
Defined in: packages/file-transfer/download.ts:20
destination
destination: string
Where the file will be downloaded to
Defined in: packages/file-transfer/download.ts:45
headers
headers: Record<string, any>
The header of the request
Defined in: packages/file-transfer/download.ts:41
pendingFile
pendingFile: string
Will first download to pending file and then rename to actual file
Defined in: packages/file-transfer/download.ts:61
progressController
progressController: ProgressController
The progress controller. If you want to track download progress, you should use this.
Defined in: packages/file-transfer/download.ts:49
skipPrevalidate
skipPrevalidate: boolean
Should skip prevalidate the file Inherited from: DownloadBaseOptions.skipPrevalidate
Defined in: packages/file-transfer/download.ts:30
skipRevalidate
skipRevalidate: boolean
Re-validate the file after download success Inherited from: DownloadBaseOptions.skipRevalidate
Defined in: packages/file-transfer/download.ts:25
url
url: string | string[]
The url or urls (fallback) of the resource
Defined in: packages/file-transfer/download.ts:37
validator
validator: Validator | ChecksumValidatorOptions
The validator, or the options to create a validator based on checksum.
Defined in: packages/file-transfer/download.ts:53