public function sendHeaders()
    {
        if ($this->headersSent) {
            return;
        }

        if (!isset($this->headers["Content-Length"])) {
            $this->sendContentLengthHeaders();
        }

        $this->httpResponse->writeHead($this->status, $this->headers);
        $this->headersSent = true;
    }