include the http method in the onRequest handler