Iterate over payload chunks in segment number order.
Number of segments retrieved so far.
Write all chunks to the destination stream.
Iterate over Data packets as they arrive, not sorted in segment number order.
Generated using TypeDoc
Return type of fetch() function.
Fetch output may be accessed in one of several formats:
await resultresolves to the reassembled object as Uint8Array.
for await (const packet of result)iterates over Data packets in segment number order.
Result is lazy. Fetching starts when an output format is accessed. You may only access one output format on a Result instance. Formats other than
await resultcan be accessed only once.