/** * Send the response * * @return $this */ public function send() { $this->output->prepare($this); header("HTTP/1.1 " . $this->getHttpCode() . " " . $this->getHttpCodeText()); foreach ($this->headers as $key => $value) { header($key . ': ' . $value); } echo $this->getContent(); exit; }