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:57

agent optional

ts
agent: DownloadAgent

The download agent Inherited from: DownloadBaseOptions.agent

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

destination

ts
destination: string

Where the file will be downloaded to

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

headers optional

ts
headers: Record<string, any>

The header of the request

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

pendingFile optional

ts
pendingFile: string

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

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

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:49

skipPrevalidate optional

ts
skipPrevalidate: boolean

Should skip prevalidate the file Inherited from: DownloadBaseOptions.skipPrevalidate

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

skipRevalidate optional

ts
skipRevalidate: boolean

Re-validate the file after download success Inherited from: DownloadBaseOptions.skipRevalidate

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

url

ts
url: string | string[]

The url or urls (fallback) of the resource

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

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:53