AddField

This method adds an additional header field to an instance of the function block FB_IotHttpHeaderFieldMap.
Syntax
METHOD AddField : BOOL
VAR_IN_OUT CONSTANT
sField : STRING;
sValue : STRING;
END_VAR
VAR_INPUT
bAppendValue : BOOL;
END_VAR
Return value
Name | Type | Description |
---|---|---|
AddField | BOOL | Returns TRUE if the method call was successful. |
Inputs
Name | Type | Description |
---|---|---|
bAppendValue | BOOL | Replaces the existing header field value (FALSE) or appends the value to the existing value (TRUE). |
Inputs/outputs
Name | Type | Description |
---|---|---|
sField | STRING | Name of the field that is added to the header of the HTTP request. |
sValue | STRING | Value of the added header field. |