Convert the stream to a string if the stream is readable and the stream is seekable.
Return value
string
Overrides StreamInterface::__toString
File
- drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php, line 30
Class
- AbstractEntityBodyDecorator
- Abstract decorator used to wrap entity bodies
Namespace
Guzzle\Http
Code
public function __toString() {
return (string) $this->body;
}