请求相关杂项


获取请求方式

Request::method() //HEAD、OPTIONS、GET、POST、PUT、DELETE

获取客户端IP地址

Request::getClientIP();

获取请求头信息

Request::getHeaders($name = '')

$token = Request::getHeaders('Token')