GuzzleHttp\Psr7\LimitStream::setLimit PHP Method

setLimit() public method

Set the limit of bytes that the decorator allows to be read from the stream.
public setLimit ( integer $limit )
$limit integer Number of bytes to allow to be read from the stream. Use -1 for no limit.
    public function setLimit($limit)
    {
        $this->limit = $limit;
    }