HttpVerbExtensions.FromMethodString method

Convert a HTTP method string to its corresponding HttpVerb enum value.

public static HttpVerb FromMethodString(string method)
parameter description
method The HTTP method string (case-insensitive).

Return Value

The corresponding HttpVerb enum value.

Exceptions

exception condition
ArgumentException Thrown when the method string is not recognized.

See Also