add 4 request method detectors for ajax and nonajax calls