/** * 发送响应头到客户端 */ protected function sendHeaders() { $statusCode = $this->getStatusCode(); header("HTTP/{$this->version} {$statusCode} {$this->statusText}"); if ($this->_headers instanceof HeadersInterface) { $this->_headers->send(); } return $this; }