Use enum for http methods
Merge pull request #10 from gengo/refactor

Use enum for http methods