Guzzle\Http\CachingEntityBody::__toString PHP Method

__toString() public method

Warning: Loads the entire stream into memory
public __toString ( ) : string
return string
    public function __toString()
    {
        $pos = $this->ftell();
        $this->rewind();
        $str = '';
        while (!$this->isConsumed()) {
            $str .= $this->read(16384);
        }
        $this->seek($pos);
        return $str;
    }