public function AppendStream::close in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/AppendStream.php \GuzzleHttp\Psr7\AppendStream::close()
Closes each attached stream.
Overrides StreamInterface::close
1 call to AppendStream::close()
- AppendStream::detach in vendor/
guzzlehttp/ psr7/ src/ AppendStream.php - Detaches each attached stream
File
- vendor/
guzzlehttp/ psr7/ src/ AppendStream.php, line 73
Class
- AppendStream
- Reads from multiple streams, one after the other.
Namespace
GuzzleHttp\Psr7Code
public function close() {
$this->pos = $this->current = 0;
foreach ($this->streams as $stream) {
$stream
->close();
}
$this->streams = [];
}