constructor #
Constructor method of the HttpStream
class. It must be called with a stream.Readable.
Arguments #
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 #
import { HttpStream } from 'kuzzle';
Examples #
See HTTP Stream
Edit this page on Github (opens new window)