HttpMethod Class

.NET Framework (current version)
 

A helper class for retrieving and comparing standard HTTP methods and for creating new HTTP methods.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

System.Object
  System.Net.Http.HttpMethod

Public Class HttpMethod
	Implements IEquatable(Of HttpMethod)

NameDescription
System_CAPS_pubmethodHttpMethod(String)

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

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticDelete

Represents an HTTP DELETE protocol method.

System_CAPS_pubpropertySystem_CAPS_staticGet

Represents an HTTP GET protocol method.

System_CAPS_pubpropertySystem_CAPS_staticHead

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.

System_CAPS_pubpropertyMethod

An HTTP method.

System_CAPS_pubpropertySystem_CAPS_staticOptions

Represents an HTTP OPTIONS protocol method.

System_CAPS_pubpropertySystem_CAPS_staticPost

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

System_CAPS_pubpropertySystem_CAPS_staticPut

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

System_CAPS_pubpropertySystem_CAPS_staticTrace

Represents an HTTP TRACE protocol method.

NameDescription
System_CAPS_pubmethodEquals(HttpMethod)

Determines whether the specified HttpMethod is equal to the current Object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current Object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for this type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Overrides Object.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(HttpMethod, HttpMethod)

The equality operator for comparing two HttpMethod objects.

System_CAPS_puboperatorSystem_CAPS_staticInequality(HttpMethod, HttpMethod)

The inequality operator for comparing two HttpMethod objects.

The most common usage of HttpMethod is to use one of the static properties on this class.  However, if an app needs a different value for the HTTP method, the HttpMethod constructor initializes a new instance of the HttpMethod with an HTTP method that the app specifies.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: