src/Network/Request.php
public function is($method) {
        $m = strtolower($method);
        if ( ($m == 'post' || $m == 'ajax') && $this->_method == 'ajax-post') {
            return TRUE;
        }
        return $m == $this->_method;
    }
public function is($method) {
        $m = strtolower($method);
        if ( ($m == 'post' || $m == 'ajax') && $this->_method == 'ajax-post') {
            return TRUE;
        }
        return $m == $this->_method;
    }
public function is ( $ method ) { $ m = strtolower ( $ method ) ; if ( ( $ m == 'post' || $ m == 'ajax' ) && $ this -> _method == 'ajax-post' ) { return TRUE ; } return $ m == $ this -> _method ; }
Verifica el tipo de request dado
@param string $method El metodo a verificar
@return boolean
Verifica el tipo de request dado