Class HttpMethodConverter
- Namespace
- Cuemon.Net.Http
- Assembly
- Cuemon.Net.dll
This utility class is designed to make System.Net.Http.HttpMethod related conversions easier to work with.
public static class HttpMethodConverter
- Inheritance
-
ObjectHttpMethodConverter
Methods
ToHttpMethod(HttpMethod)
Converts the specified method
to its equivalent HttpMethods representation.
public static HttpMethods ToHttpMethod(HttpMethod method)
Parameters
method
HttpMethodThe System.Net.Http.HttpMethod to be converted.
Returns
- HttpMethods
A HttpMethods representation of the specified
method
.
Exceptions
- System.ArgumentNullException
method
cannot be null.