public function PumpStream::getContents in Lockr 7.3
Returns the remaining contents in a string
Return value
string
Throws
\RuntimeException if unable to read or an error occurs while reading.
Overrides StreamInterface::getContents
File
- vendor/
guzzlehttp/ psr7/ src/ PumpStream.php, line 132
Class
- PumpStream
- Provides a read only stream that pumps data from a PHP callable.
Namespace
GuzzleHttp\Psr7Code
public function getContents() {
$result = '';
while (!$this
->eof()) {
$result .= $this
->read(1000000);
}
return $result;
}