public function PumpStream::getContents in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/PumpStream.php \GuzzleHttp\Psr7\PumpStream::getContents()
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;
}