Changed HttpMethod to an enum.