Table of Contents

TTMSMCPHTTPServerHeaders.GetIfExists Method

Looks a header up and reports both whether it was present and its value.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerHeaders

Syntax

function GetIfExists(const AHeaderName: string; var AHeaderValue: string): Boolean;

Parameters

Name Description
AHeaderName Name to look up, matched without regard to case.
AHeaderValue Receives the stored value when the header is present. Left untouched when it is not, so a value assigned beforehand survives and can serve as a default.

Returns

True when the name is present.