Class HttpMethodConverter
This utility class is designed to make HttpMethod related conversions easier to work with.
public static class HttpMethodConverter
- Inheritance
-
HttpMethodConverter
Methods
ToHttpMethod(HttpMethod)
Converts the specified method to its equivalent HttpMethods representation.
public static HttpMethods ToHttpMethod(HttpMethod method)
Parameters
methodHttpMethodThe HttpMethod to be converted.
Returns
- HttpMethods
A HttpMethods representation of the specified
method.
Exceptions
- ArgumentNullException
methodcannot be null.