Core
Framework v2.x
2

constructor #

Constructor method of the HttpStream class. It must be called with a stream.Readable.

Arguments #

Copied to clipboard!
constructor (stream: stream.Readable, { totalBytes = -1 });

Argument Type Description
stream
stream.Readable
stream.Readable instance

Optionnal Arguments #

Argument Type Description
totalBytes
number
(-1)
Represent the total number of bytes that the stream will send. -1 means the size is dynamic

Usage #

Copied to clipboard!
import { HttpStream } from 'kuzzle';

Examples #

See HTTP Stream