Skip to content

covenix / RangeStreamSource

Type Alias: RangeStreamSource

RangeStreamSource = (range?) => Readable | Promise<Readable>

Defined in: src/range-file-response.ts:18

Produces the response body as a stream: the whole body when called with no argument, or just range when given one. Used for large/remote sources (e.g. object storage, a big file) that can serve a byte slice on demand.

Parameters

range?

ByteRange

Returns

Readable | Promise<Readable>