Skip to content

FetchOptions

Defined in: src/backends/fetch.ts:36

Configuration options for FetchFS.

baseUrl: string

Defined in: src/backends/fetch.ts:51

Used as the URL prefix for fetched files.


optional caseFold?: CaseFold

Defined in: src/backends/backend.ts:56

If set, sets case folding for the file system(s).

SharedConfig.caseFold


optional disableAsyncCache?: boolean

Defined in: src/backends/backend.ts:51

If set, disables the sync cache and sync operations on async file systems.

SharedConfig.disableAsyncCache


optional index?: string | IndexData

Defined in: src/backends/fetch.ts:46

URL to a file index as a JSON file or the file index object itself. Defaults to index.json.


optional remoteWrite?: boolean

Defined in: src/backends/fetch.ts:57

If true, enables writing to the remote (using post and delete)

false

optional requestInit?: RequestInit

Defined in: src/backends/fetch.ts:40

Options to pass through to fetch calls