Skip to main content

Class: SizeLimitedReadableStream

@divine/commons.SizeLimitedReadableStream

Hierarchy

  • Transform

    SizeLimitedReadableStream

Constructors

constructor

new SizeLimitedReadableStream(_maxContentLength, _makeError, opts?)

Parameters

NameType
_maxContentLengthnumber
_makeError() => Error
opts?TransformOptions

Overrides

Transform.constructor

Defined in

commons/src/streams.ts:23

Methods

_flush

_flush(callback): void

Parameters

NameType
callbackTransformCallback

Returns

void

Overrides

Transform._flush

Defined in

commons/src/streams.ts:43


_transform

_transform(chunk, _encoding, callback): void

Parameters

NameType
chunkunknown
_encodingstring
callbackTransformCallback

Returns

void

Overrides

Transform._transform

Defined in

commons/src/streams.ts:27