lithium\action\Request::$_detectors
Options used to detect features of the request, using is()
. For example:
Custom detectors can be added using `detect()`.
Source
protected $_detectors = [
'mobile' => ['HTTP_USER_AGENT', null],
'ajax' => ['HTTP_X_REQUESTED_WITH', 'XMLHttpRequest'],
'flash' => ['HTTP_USER_AGENT', 'Shockwave Flash'],
'ssl' => 'HTTPS',
'dnt' => ['HTTP_DNT', '1'],
'get' => ['REQUEST_METHOD', 'GET'],
'post' => ['REQUEST_METHOD', 'POST'],
'patch' => ['REQUEST_METHOD', 'PATCH'],
'put' => ['REQUEST_METHOD', 'PUT'],
'delete' => ['REQUEST_METHOD', 'DELETE'],
'head' => ['REQUEST_METHOD', 'HEAD'],
'options' => ['REQUEST_METHOD', 'OPTIONS']
];