## HttpMethod class

Represents utility class for retrieving and comparing standard HTTP methods.

```csharp
public class HttpMethod : IEquatable<HttpMethod>
```

## Constructors

| Name | Description |
| --- | --- |
| [HttpMethod](httpmethod/)(*string*) | Initializes a new instance of the `HttpMethod` class with a specific HTTP method. |

## Properties

| Name | Description |
| --- | --- |
| static [Delete](../../aspose.html.net/httpmethod/delete/) { get; } | Represents an HTTP DELETE protocol method. |
| static [Get](../../aspose.html.net/httpmethod/get/) { get; } | Represents an HTTP GET protocol method. |
| static [Post](../../aspose.html.net/httpmethod/post/) { get; } | Represents an HTTP POST protocol method. |
| static [Put](../../aspose.html.net/httpmethod/put/) { get; } | Represents an HTTP PUT protocol method. |

## Methods

| Name | Description |
| --- | --- |
| [Equals](../../aspose.html.net/httpmethod/equals/#equals)(*HttpMethod*) | Indicates whether the current object is equal to another object of the same type. |
| override [Equals](../../aspose.html.net/httpmethod/equals/#equals_1)(*object*) | Determines whether the specified Object, is equal to this instance. |
| override [GetHashCode](../../aspose.html.net/httpmethod/gethashcode/)() | Returns a hash code for this instance. |
| override [ToString](../../aspose.html.net/httpmethod/tostring/)() | Returns a String that represents this instance. |
| [operator ==](../../aspose.html.net/httpmethod/op_equality/) | Implements the equality operator. |
| [explicit operator](../../aspose.html.net/httpmethod/op_explicit/) | Performs an explicit conversion from String to `HttpMethod`. |
| [operator !=](../../aspose.html.net/httpmethod/op_inequality/) | Implements the equality operator. |

### See Also

* namespace [Aspose.Html.Net](../../aspose.html.net/)
* assembly [Aspose.HTML](../../)
