public function setBody($body) { $this->body = $body; $this->setHeader('Content-Length', strlen($body)); return $this; }