parse
Parses a string representation of an HTTP method and returns the corresponding HttpMethod enum.
Return
The corresponding HttpMethod enum value.
Parameters
method
The string representation of the HTTP method.
Throws
if the method string doesn't match any known HTTP method.