<PackageReference Include="Microsoft.Net.Http" Version="2.2.23-beta" />

System.Net.Http.HttpMethod

public class HttpMethod : IEquatable<HttpMethod>
A helper class for retrieving and comparing standard HTTP methods.
public static HttpMethod Delete { get; }

Represents an HTTP DELETE protocol method.

public static HttpMethod Get { get; }

Represents an HTTP GET protocol method.

public static HttpMethod Head { get; }

Represents an HTTP HEAD protocol method. The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body.

public static HttpMethod Options { get; }

Represents an HTTP OPTIONS protocol method.

public static HttpMethod Post { get; }

Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI.

public static HttpMethod Put { get; }

Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI.

public static HttpMethod Trace { get; }

Represents an HTTP TRACE protocol method.

public string Method { get; }

An HTTP method.

public HttpMethod(string method)

Initializes a new instance of the HttpMethod class with a specific HTTP method.

public static bool op_Equality(HttpMethod left, HttpMethod right)

public static bool op_Inequality(HttpMethod left, HttpMethod right)

public bool Equals(HttpMethod other)