HttpMethod Class

HttpMethod class

Represents utility class for retrieving and comparing standard HTTP methods.

public class HttpMethod : IEquatable<HttpMethod>

Constructors

NameDescription
HttpMethod(String)Initializes a new instance of the HttpMethod class with a specific HTTP method.

Properties

NameDescription
static getDelete Represents an HTTP DELETE protocol method.
static getGet Represents an HTTP GET protocol method.
static getPost Represents an HTTP POST protocol method.
static getPut Represents an HTTP PUT protocol method.

Methods

NameDescription
equals(HttpMethod)Indicates whether the current object is equal to another object of the same type.
equals(object)Determines whether the specified Object, is equal to this instance.
getHashCode()Returns a hash code for this instance.
toString()Returns a String that represents this instance.
operator ==
explicit operator
operator !=

See Also