- replace the "POST" / "GET" strings with an enum

Change-Id: I2155e6e6663ba559c9c9d99849abdb28e1fab8d5