You are here

public function AppendStream::rewind in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/src/AppendStream.php \GuzzleHttp\Psr7\AppendStream::rewind()

Seek to the beginning of the stream.

If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).

@link http://www.php.net/manual/en/function.fseek.php

Throws

\RuntimeException on failure.

Overrides StreamInterface::rewind

See also

seek()

1 call to AppendStream::rewind()
AppendStream::__toString in vendor/guzzlehttp/psr7/src/AppendStream.php
Reads all data from the stream into a string, from the beginning to end.

File

vendor/guzzlehttp/psr7/src/AppendStream.php, line 130

Class

AppendStream
Reads from multiple streams, one after the other.

Namespace

GuzzleHttp\Psr7

Code

public function rewind() {
  $this
    ->seek(0);
}