public function setBody($body)
    {
        $this->body = empty($body) ?
            null :
            Stream::factory($body);
    }
public function setBody($body)
    {
        $this->body = empty($body) ?
            null :
            Stream::factory($body);
    }
public function setBody ( $ body ) { $ this -> body = empty ( $ body ) ? null : Stream :: factory ( $ body ) ; }
Set request body.

@param string $body
Set request body .