码迷,mamicode.com
首页 > 其他好文 > 详细

Helpers\Request

时间:2016-07-05 14:02:07      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:

Helpers\Request

The Helpers\Request class is used for detecting the type of request and retrieving the request.

getMethod()

Request::getMethod()

Returns either GET or POST, depending if a $_GET request or a $_POST request has happened.

getIpAddress()

Request::getIpAddress()

Returns the client‘s IP Address.

post()

Request::post($key)

Returns the post key.

get()

Request::get($key)

Returns the get key.

server()

Request::server($key)

Returns the server key.

headers()

Request::headers($key)

Returns the HTTP Request Headers key.

files()

Request::files($key)

Returns the file key.

put()

Request::put($key)

Returns the put key.

isAjax()

Request::isAjax()

Detect if the request is a ajax request.

isPost()

Request::isPost()

Detect if the request is a post request.

isGet()

Request::isGet()

Detect if the request is a get request.

isHead()

Request::isHead()

Detect if the request is a head request.

isPut()

Request::isPut()

Detect if the request is a put request.

isDelete()

Request::isDelete()

Detect if the request is a delete request.

isOptions()

Request::isOptions()

Detect if the request is an options request.

Helpers\Request

标签:

原文地址:http://www.cnblogs.com/chunguang/p/5643194.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!