HttpMethod
HttpMethod
HttpMethod
HttpMethod
Class
Definition
Retrieves standard HTTP methods such as GET and POST and creates new HTTP methods.
public : sealed class HttpMethod : IStringable, IHttpMethodpublic sealed class HttpMethod : IStringable, IHttpMethodPublic NotInheritable Class HttpMethod Implements IStringable, IHttpMethod// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
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.
Constructors
HttpMethod(String) HttpMethod(String) HttpMethod(String) HttpMethod(String)
Initializes a new instance of the HttpMethod class with a specific HTTP method.
public : HttpMethod(PlatForm::String method)public HttpMethod(String method)Public Sub New(method As String)// You can use this method in JavaScript.
- method
- PlatForm::String String String String
The HTTP method.
Remarks
If an app needs a different value for the HTTP method from one of the static properties, the HttpMethod constructor initializes a new instance of the HttpMethod with an HTTP method that caller specifies.
Properties
Delete Delete Delete Delete
Gets the HTTP DELETE method.
public : static HttpMethod Delete { get; }public static HttpMethod Delete { get; }Public Static ReadOnly Property Delete As HttpMethod// You can use this property in JavaScript.
The HTTP DELETE method.
Get Get Get Get
Gets the HTTP GET method.
public : static HttpMethod Get { get; }public static HttpMethod Get { get; }Public Static ReadOnly Property Get As HttpMethod// You can use this property in JavaScript.
The HTTP GET method.
Head Head Head Head
Gets the HTTP HEAD method.
public : static HttpMethod Head { get; }public static HttpMethod Head { get; }Public Static ReadOnly Property Head As HttpMethod// You can use this property in JavaScript.
The HTTP HEAD method.
Method Method Method Method
Gets the HTTP method.
public : PlatForm::String Method { get; }public string Method { get; }Public ReadOnly Property Method As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
An HTTP method represented as a String.
Options Options Options Options
Gets the HTTP OPTIONS method.
public : static HttpMethod Options { get; }public static HttpMethod Options { get; }Public Static ReadOnly Property Options As HttpMethod// You can use this property in JavaScript.
The HTTP OPTIONS method.
Patch Patch Patch Patch
Gets the HTTP PATCH method,
public : static HttpMethod Patch { get; }public static HttpMethod Patch { get; }Public Static ReadOnly Property Patch As HttpMethod// You can use this property in JavaScript.
The HTTP PATCH method.
Post Post Post Post
Gets the HTTP POST method.
public : static HttpMethod Post { get; }public static HttpMethod Post { get; }Public Static ReadOnly Property Post As HttpMethod// You can use this property in JavaScript.
The HTTP POST method.
Methods
ToString() ToString() ToString() ToString()
Returns a string that represents the current HttpMethod object.
public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
A string that represents the current object.