use enumeration approach to find request method