mini\Http\Message\Stream::__toString() Method

public

Signature

public function __toString(): string

Returns

string

Documentation

Reads all data from the stream into a string, from the beginning to end.

This method MUST attempt to seek to the beginning of the stream before reading data and read the stream until the end is reached.

Warning: This could attempt to load a large amount of data into memory.

This method MUST NOT raise an exception in order to conform with PHP's string casting operations.

Source

src/Http/Message/StreamTrait.php:48-58