think\controller\Rest::response PHP Метод

response() защищенный Метод

输出返回数据
protected response ( mixed $data, String $type = 'json', integer $code = 200 ) : Response
$data mixed 要返回的数据
$type String 返回类型 JSON XML
$code integer HTTP状态码
Результат think\Response
    protected function response($data, $type = 'json', $code = 200)
    {
        return Response::create($data, $type)->code($code);
    }