Core
Framework v2.x
2

constructor #

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

Arguments #

constructor (stream: stream.Readable, { totalBytes = -1 });

ArgumentTypeDescription
stream
stream.Readable
stream.Readable instance

Optionnal Arguments #

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

Usage #

import { HttpStream } from 'kuzzle';

Examples #

See HTTP Stream