Given the string representation of the HTTP request method, returns the corresponding HttpMethod enum.