Skip to content

Interface DownloadOptions

🏷️ Properties

abortSignal optional

ts
abortSignal: AbortSignal

The user abort signal to abort the download

Defined in: packages/file-transfer/download.ts:85

checkpointHandler optional

ts
checkpointHandler: CheckpointHandler

The checkpoint handler to save & restore the download progress Inherited from: DownloadBaseOptions.checkpointHandler

Defined in: packages/file-transfer/download.ts:52

destination

ts
destination: string

Where the file will be downloaded to

Defined in: packages/file-transfer/download.ts:73

dispatcher optional

ts
dispatcher: Dispatcher

The undici dispatcher Inherited from: DownloadBaseOptions.dispatcher

Defined in: packages/file-transfer/download.ts:48

headers optional

ts
headers: Record<string, any>

The header of the request

Defined in: packages/file-transfer/download.ts:69

pendingFile optional

ts
pendingFile: string

Will first download to pending file and then rename to actual file

Defined in: packages/file-transfer/download.ts:89

progressController optional

ts
progressController: ProgressController

The progress controller. If you want to track download progress, you should use this.

Defined in: packages/file-transfer/download.ts:77

rangePolicy optional

ts
rangePolicy: RangePolicy

The range policy to compute the ranges to download Inherited from: DownloadBaseOptions.rangePolicy

Defined in: packages/file-transfer/download.ts:44

skipHead optional

ts
skipHead: boolean

Inherited from: DownloadBaseOptions.skipHead

Defined in: packages/file-transfer/download.ts:54

skipPrevalidate optional

ts
skipPrevalidate: boolean

Inherited from: DownloadBaseOptions.skipPrevalidate

Defined in: packages/file-transfer/download.ts:58

skipRevalidate optional

ts
skipRevalidate: boolean

Inherited from: DownloadBaseOptions.skipRevalidate

Defined in: packages/file-transfer/download.ts:56

url

ts
url: string | string[]

The url or urls (fallback) of the resource

Defined in: packages/file-transfer/download.ts:65

validator optional

ts
validator: Validator | ChecksumValidatorOptions

The validator, or the options to create a validator based on checksum.

Defined in: packages/file-transfer/download.ts:81