Table of Contents

TTMSMCPHTTPServerHeaders.Get Method

Returns the value stored under a header name.

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

Syntax

function Get(const AHeaderName: string): string;

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.