HttpMethod
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, IHttpMethod
struct winrt::Windows::Web::Http::HttpMethod : IStringable, IHttpMethod
public sealed class HttpMethod : IStringable, IHttpMethod
Public NotInheritable Class HttpMethod Implements IStringable, IHttpMethod
var httpMethod = new httpMethod(method);
- 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) HttpMethod(String) |
Initializes a new instance of the HttpMethod class with a specific HTTP method. |
Properties
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. |
Methods
ToString() ToString() ToString() ToString() ToString() |
Returns a string that represents the current HttpMethod object. |