kinetex - v1.0.0-rc.1
    Preparing search index...

    Function withUploadProgress

    • Wrap a ReadableStream (or BodyInit) to track upload progress.

      Parameters

      • body:
            | string
            | Uint8Array<ArrayBufferLike>
            | ReadableStream<Uint8Array<ArrayBufferLike>>
            | null

        The request body — ReadableStream, Uint8Array, string, or null.

      • total: number | null

        Total bytes to upload (null if unknown).

      • options: ProgressOptions = {}

        Progress options (onProgress, throttle, signal, etc.).

      Returns WithUploadProgressResult

      An object with a tracked stream and the underlying tracker.