FetchOpts: { body?: BodyInit; formData?: FormData; params?: Record<string, string>; progressCallback?: ((pe: ProgressEvent) => void); timeout?: number }

FetchOpts are the "closure" and the optional second argument to all client endpoint function calls, used to modify how estuary-rpc-client constructs the XmlHttpRequest

Type declaration

  • Optional body?: BodyInit

    The body of a call whose endpoint has a RawTransport (a Blob, say)

  • Optional formData?: FormData
  • Optional params?: Record<string, string>
  • Optional progressCallback?: ((pe: ProgressEvent) => void)
      • (pe: ProgressEvent): void
      • Parameters

        • pe: ProgressEvent

        Returns void

  • Optional timeout?: number

Generated using TypeDoc