public function setBody(Body $body)
    {
        parent::setBody($body);

        return $this->addHeaders(array(
            'Content-Length' => (string) strlen($this->body)
        ), true);
    }
public function setBody(Body $body)
    {
        parent::setBody($body);

        return $this->addHeaders(array(
            'Content-Length' => (string) strlen($this->body)
        ), true);
    }
public function setBody ( Body $ body ) { parent :: setBody ( $ body ) ; return $ this -> addHeaders ( array ( 'Content-Length' => ( string ) strlen ( $ this -> body ) ) , true ) ; }
Set message body

@param  string  $body the new body of the message
@return boolean Returns TRUE on success or FALSE on failure.
Set message body