THttpHeaders.SetValue Method
Sets the named header to the given value, replacing any existing value.
Syntax
Unit: Sparkle.Http.Headers
procedure THttpHeaders.SetValue(const HeaderName: string; const HeaderValue: string);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | HeaderName | string | The header name (case-insensitive). An empty name is ignored. |
| const | HeaderValue | string | The header value; surrounding whitespace is trimmed. |