Table of Contents

THttpHeaders.AddValue Method

Adds a value to the named header, appending it to any existing value using a comma or line feedseparator.

Remarks

If a value already exists for the header, the new value is appended to it. For most headers, a comma is used as the separator; for "Set-Cookie" headers, a line feed (#10) is used instead.

Syntax

Unit: Sparkle.Http.Headers

procedure THttpHeaders.AddValue(const HeaderName: string; const HeaderValue: string);

Parameters

<-> Parameter Type Description
const HeaderName string The header name (case-insensitive).
const HeaderValue string The value to add.

See also