HttpHeaders.TryAddWithoutValidation(Text, SecretText) Method

Version: Available or changed with runtime version 12.0.

Adds the specified secret header and its value into the HttpHeaders collection. Doesn't validate the provided value.

Syntax

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

Parameters

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

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

Value
 Type: SecretText
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.

See Also

HttpHeaders Data Type
Getting Started with AL
Developing Extensions