check request type (isGet, isPost, isAjax)