Muokkaa

Jaa


HttpHeaders.Add(Text, Text) Method

Version: Available or changed with runtime version 1.0.

Adds the specified header and its value into the HttpHeaders collection. Validates the provided value.

Syntax

[Ok := ]  HttpHeaders.Add(Name: Text, Value: Text)

Parameters

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

Name
 Type: Text
The header to add to the collection.

Value
 Type: Text
The content of the header.

Return Value

[Optional] Ok
 Type: Boolean
true if the value was added successfully, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

HttpHeaders Data Type
Getting Started with AL
Developing Extensions