TTMSMCPHTTPServerHeaders.AddValue Method
Adds a value to a header, keeping any value already stored under that name.
API unit family: TMS.MCP.HTTPServer
Declaring type: TTMSMCPHTTPServerHeaders
Syntax
procedure AddValue(const AHeaderName, AHeaderValue: string);
Remarks
When the name is not present this behaves like TTMSMCPHTTPServerHeaders.SetHeader. When it is, the new value is appended after a comma, which is how repeated values of one header are carried. Calling it twice with the same value therefore stores the value twice; use TTMSMCPHTTPServerHeaders.SetHeader for a header that must appear once.
Parameters
| Name | Description |
|---|---|
AHeaderName |
Name of the header. |
AHeaderValue |
Value to add. |