Skip to main content
Table of Contents

TTMSMCPHTTPServerHeaders.Get Method

Returns the value stored under a header name.

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

Syntax

TMS.MCP.HTTPServer.hppPascalC++
function Get(const AHeaderName: string): string;
System::UnicodeString __fastcall Get(const System::UnicodeString AHeaderName);

Remarks

A missing header and a header present with an empty value both come back as an empty string. Use TTMSMCPHTTPServerHeaders.Exists or TTMSMCPHTTPServerHeaders.GetIfExists when the difference matters.

Parameters

Name Description
AHeaderName Name to look up, matched without regard to case.

Returns

The stored value, or an empty string when the name is not present.