public function PumpStream::write in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/src/PumpStream.php \GuzzleHttp\Psr7\PumpStream::write()
Write data to the stream.
Parameters
string $string The string that is to be written.:
Return value
int Returns the number of bytes written to the stream.
Throws
\RuntimeException on failure.
Overrides StreamInterface::write
File
- vendor/
guzzlehttp/ psr7/ src/ PumpStream.php, line 106
Class
- PumpStream
- Provides a read only stream that pumps data from a PHP callable.
Namespace
GuzzleHttp\Psr7Code
public function write($string) {
throw new \RuntimeException('Cannot write to a PumpStream');
}