move method enum from http.h to method.h