Bearbeiten

Freigeben über


HttpRequestMessage Data type

Version: Available or changed with runtime version 1.0.

Represents an HTTP request message.

Instance methods

The following methods are available on instances of the HttpRequestMessage data type.

Method name Description
Content([HttpContent]) Gets or sets the contents of the HTTP message.
GetCookie(Text, var Cookie) Gets the specified cookie given a name.
GetCookieNames() Gets the list of cookie names.
GetHeaders(var HttpHeaders) Gets a reference to the collection of HTTP request headers.
GetRequestUri() Gets the URI used for the HTTP request.
GetSecretRequestUri() Gets the secret URI used for the HTTP request.
Method([Text]) Gets or sets the method type as defined in the HTTP standard.
RemoveCookie(Text) Removes the specified cookie given a name.
SetCookie(Text, Text) Sets the cookie given a name and value.
SetCookie(Cookie) Sets the cookie given a cookie object.
SetRequestUri(Text) Sets the URI used for the HTTP request.
SetSecretRequestUri(SecretText) Sets the secret URI used for the HTTP request.

Note

For performance reasons all HTTP, JSON, TextBuilder, and XML types are reference types, not value types. Reference types holds a pointer to the data elsewhere in memory, whereas value types store its own data.

Get Started with AL
Developing Extensions