src/Leevel/Router/ResponseFactory.php
public function view(string $file, array $vars = [], ?string $ext = null, int $status = 200, array $headers = []): Response
    {
        return $this->make($this->view->display($file, $vars, $ext), $status, $headers);
    }
public function view(string $file, array $vars = [], ?string $ext = null, int $status = 200, array $headers = []): Response
    {
        return $this->make($this->view->display($file, $vars, $ext), $status, $headers);
    }
返回视图响应.

@param string $file
@param array  $vars
@param string $ext
@param int    $status
@param array  $headers

@return \Leevel\Http\Response