You are here

public function LimitStream::setLimit in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/LimitStream.php \GuzzleHttp\Psr7\LimitStream::setLimit()

Set the limit of bytes that the decorator allows to be read from the stream.

Parameters

int $limit Number of bytes to allow to be read from the stream.: Use -1 for no limit.

1 call to LimitStream::setLimit()
LimitStream::__construct in vendor/guzzlehttp/psr7/src/LimitStream.php

File

vendor/guzzlehttp/psr7/src/LimitStream.php, line 133

Class

LimitStream
Decorator used to return only a subset of a stream

Namespace

GuzzleHttp\Psr7

Code

public function setLimit($limit) {
  $this->limit = $limit;
}