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 = array(
'mobile' => array('HTTP_USER_AGENT', null),
'ajax' => array('HTTP_X_REQUESTED_WITH', 'XMLHttpRequest'),
'flash' => array('HTTP_USER_AGENT', 'Shockwave Flash'),
'ssl' => 'HTTPS',
'get' => array('REQUEST_METHOD', 'GET'),
'post' => array('REQUEST_METHOD', 'POST'),
'patch' => array('REQUEST_METHOD', 'PATCH'),
'put' => array('REQUEST_METHOD', 'PUT'),
'delete' => array('REQUEST_METHOD', 'DELETE'),
'head' => array('REQUEST_METHOD', 'HEAD'),
'options' => array('REQUEST_METHOD', 'OPTIONS')
);