FetchOptions: Override<RequestInit, {
    body?: BodyInit | null | "node:stream".Readable;
    onDownloadProgress?: ProgressFn;
    onUploadProgress?: ProgressFn;
    overrideMimeType?: string;
    searchParams?: URLSearchParams;
    timeout?: number;
}>

Type declaration

  • Optional body?: BodyInit | null | "node:stream".Readable

    Extended body with support for node readable stream

  • Optional onDownloadProgress?: ProgressFn

    Can be passed to track download progress.

  • Optional onUploadProgress?: ProgressFn

    Can be passed to track upload progress. Note that if this option in passed underlying request will be performed using XMLHttpRequest and response will not be streamed.

  • Optional overrideMimeType?: string
  • Optional searchParams?: URLSearchParams

    URL search param.

  • Optional timeout?: number

    Amount of time until request should timeout in ms.

Generated using TypeDoc