public function write($body, $overwrite = false)
    {
        if ($overwrite === true) {
            $this->body->close();
            $this->body = new \Guzzle\Stream\Stream(fopen('php://temp', 'r+'));
        }
        $this->body->write($body);
    }
public function write($body, $overwrite = false)
    {
        if ($overwrite === true) {
            $this->body->close();
            $this->body = new \Guzzle\Stream\Stream(fopen('php://temp', 'r+'));
        }
        $this->body->write($body);
    }
public function write ( $ body , $ overwrite = false ) { if ( $ overwrite === true ) { $ this -> body -> close ( ) ; $ this -> body = new \ Guzzle \ Stream \ Stream ( fopen ( 'php://temp' , 'r+' ) ) ; } $ this -> body -> write ( $ body ) ; }
Append response body

@param string $body      Content to append to the current HTTP response body
@param bool   $overwrite Clear the existing body before writing new content?
@api
Append response body