HttpRequestMessage.Method([Text]) Method

Version: Available or changed with runtime version 1.0.

Gets or sets the method type as defined in the HTTP standard.

Syntax

[CurrentMethod := ]  HttpRequestMessage.Method([NewMethod: Text])

Note

This method can be invoked using property access syntax.

Parameters

HttpRequestMessage
 Type: HttpRequestMessage
An instance of the HttpRequestMessage data type.

[Optional] NewMethod
 Type: Text
The HTTP method used by the request message.

Return Value

[Optional] CurrentMethod
 Type: Text
The HTTP method used by the request message. The default is the GET method.

HttpRequestMessage Data Type
Get Started with AL
Developing Extensions