Table of Contents

THttpHeaders.Get Method

Returns the value of the named header, or an empty string if it does not exist.

Remarks

If the header has multiple values, they are returned as a single string with the values separated by commas (or line feeds for "Set-Cookie" headers).

Syntax

Unit: Sparkle.Http.Headers

function THttpHeaders.Get(const HeaderName: string): string;

Parameters

<-> Parameter Type Description
const HeaderName string The header name to look up (case-insensitive).

Returns

The header value, or an empty string when the header is absent.

See also