Class HttpMethod
Namespace: Aspose.Html.Net
Assembly: Aspose.HTML.dll (25.2.0)
Represents utility class for retrieving and comparing standard HTTP methods.
[ComVisible(true)]
public class HttpMethod : IEquatable<httpmethod>
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
HttpMethod(string)
Initializes a new instance of the Aspose.Html.Net.HttpMethod class with a specific HTTP method.
public HttpMethod(string method)
Parameters
method
string
The method.
Properties
Delete
Represents an HTTP DELETE protocol method.
public static HttpMethod Delete { get; }
Property Value
Get
Represents an HTTP GET protocol method.
public static HttpMethod Get { get; }
Property Value
Post
Represents an HTTP POST protocol method.
public static HttpMethod Post { get; }
Property Value
Put
Represents an HTTP PUT protocol method.
public static HttpMethod Put { get; }
Property Value
Methods
Equals(HttpMethod)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(HttpMethod other)
Parameters
other
HttpMethod
An object to compare with this object.
Returns
true if the current object is equal to the other
parameter; otherwise, false.
Equals(object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
object
The System.Object to compare with this instance.
Returns
true
if the specified System.Object is equal to this instance; otherwise, false
.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
A System.String that represents this instance.
Operators
operator ==(HttpMethod, HttpMethod)
Implements the equality operator.
public static bool operator ==(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
The left operand.
right
HttpMethod
The left operand.
Returns
The result of the operation.
explicit operator HttpMethod(string)
Performs an explicit conversion from System.String to Aspose.Html.Net.HttpMethod.
public static explicit operator HttpMethod(string name)
Parameters
name
string
The http-method name.
Returns
The result of the conversion.
operator !=(HttpMethod, HttpMethod)
Implements the equality operator.
public static bool operator !=(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
The left operand.
right
HttpMethod
The left operand.
Returns
The result of the operation. </httpmethod>