GuzzleHttp\Psr7\LimitStream::__construct PHP Method

__construct() public method

public __construct ( Psr\Http\Message\StreamInterface $stream, integer $limit, integer $offset )
$stream Psr\Http\Message\StreamInterface Stream to wrap
$limit integer Total number of bytes to allow to be read from the stream. Pass -1 for no limit.
$offset integer Position to seek to before reading (only works on seekable streams).
    public function __construct(StreamInterface $stream, $limit = -1, $offset = 0)
    {
        $this->stream = $stream;
        $this->setLimit($limit);
        $this->setOffset($offset);
    }