allow the user to pass in the http method