HttpMethod

HttpMethod class

Represents utility class for retrieving and comparing standard HTTP methods.

public class HttpMethod : IEquatable<HttpMethod>

Constructors

Name Description
HttpMethod(string) Initializes a new instance of the HttpMethod class with a specific HTTP method.

Properties

Name Description
static Delete { get; } Represents an HTTP DELETE protocol method.
static Get { get; } Represents an HTTP GET protocol method.
static Post { get; } Represents an HTTP POST protocol method.
static Put { get; } Represents an HTTP PUT protocol method.

Methods

Name Description
Equals(HttpMethod) Indicates whether the current object is equal to another object of the same type.
override Equals(object) Determines whether the specified Object, is equal to this instance.
override GetHashCode() Returns a hash code for this instance.
override ToString() Returns a String that represents this instance.
operator ==
explicit operator
operator !=

See Also