HttpMethod HttpMethod HttpMethod HttpMethod HttpMethod Class


Retrieves standard HTTP methods such as GET and POST and creates new HTTP methods.

public : sealed class HttpMethod : IStringable
struct winrt::Windows::Web::Http::HttpMethod : IStringable
public sealed class HttpMethod : IStringable
Public NotInheritable Class HttpMethod Implements IStringable
var httpMethod = new httpMethod(method);

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The most common use of HttpMethod is to get a standard HTTP method (verb) from a property 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 developer specifies.


HttpMethod(String) HttpMethod(String) HttpMethod(String) HttpMethod(String) HttpMethod(String)

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


Delete Delete Delete Delete Delete

Gets the HTTP DELETE method.

Get Get Get Get Get

Gets the HTTP GET method.

Head Head Head Head Head

Gets the HTTP HEAD method.

Method Method Method Method Method

Gets the HTTP method.

Options Options Options Options Options

Gets the HTTP OPTIONS method.

Patch Patch Patch Patch Patch

Gets the HTTP PATCH method,

Post Post Post Post Post

Gets the HTTP POST method.

Put Put Put Put Put

Gets the HTTP PUT method.


ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpMethod object.

See also