return response('hello webman');
}
}
```
response函数实现如下:
```php
function response($body = '', $status= 200, $headers = array())
{
return new Response($status, $headers, $body);
}
```
你也可以先创建一个空的`responsereturn redirect('/user');
}
}
```
redirect函数实现如下:
```php
function redirect($location, $status= 302, $headers = [])
{
$response = new Response($status, ['Location' => $location]);
if (!