Interface FetchOptions

Configuration options for FetchFS.

interface FetchOptions {
    baseUrl: string;
    disableAsyncCache?: boolean;
    index?: string | IndexData;
    remoteWrite?: boolean;
    requestInit?: RequestInit;
}

Hierarchy (View Summary)

Properties

baseUrl: string

Used as the URL prefix for fetched files.

disableAsyncCache?: boolean

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

index?: string | IndexData

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

remoteWrite?: boolean

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

false
requestInit?: RequestInit

Options to pass through to fetch calls