/** * 中断浏览器的响应 */ static function finish() { self::$finish = true; fastcgi_finish_request(); }
/** * Redirect to a new location * * @param string $location * @param array $options * @return void */ public function redirect($location, $status = 302) { $this->response->setStatus($status); $this->response->setHeader('Location: ' . $location); $this->response->finish(); }