using request.$method for request method