Skip to content

Interface DownloadOptions

🏷️ Properties

abortSignal

ts
abortSignal: AbortSignal

The user abort signal to abort the download

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

agent

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

ts
headers: Record<string, any>

The header of the request

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

pendingFile

ts
pendingFile: string

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

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

progressController

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

ts
skipPrevalidate: boolean

Should skip prevalidate the file Inherited from: DownloadBaseOptions.skipPrevalidate

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

skipRevalidate

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

ts
validator: Validator | ChecksumValidatorOptions

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

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

Released under the MIT License.