React\HttpClient\ChunkedStreamDecoder::__construct PHP Method

__construct() public method

public __construct ( React\Stream\ReadableStreamInterface $stream )
$stream React\Stream\ReadableStreamInterface
    public function __construct(ReadableStreamInterface $stream)
    {
        $this->stream = $stream;
        $this->stream->on('data', array($this, 'handleData'));
        $this->stream->on('end', array($this, 'handleEnd'));
        Util::forwardEvents($this->stream, $this, ['error']);
    }