Skip to main content

Title

property Title: string read write;

Example

procedure ScriptEvent(var Value: variant);
begin
if Response <> nil then
begin
{ Only for a private contract that still defines this obsolete field. }
Response.SetCustomHeader('Title', 'Example representation');
Value := Response.CustomHeaders.Values['Title'];
end;
end;

Usage

Reads or writes a transient legacy Title value that the response bridge clears before automatic transmission.

Additional Technical Info

Title maps to FResponseInfo.CustomHeaders.Values['Title']. Automatic sending clears that Indy list and replaces it with WebBroker CustomHeaders, so a direct assignment can read back during the action yet normally does not reach the client.

If a private legacy contract requires the field, use SetCustomHeader. This is the same bridge defect as Allow and DerivedFrom.

Title appeared in obsolete HTTP/1.1 material and is not a current general HTTP field. It does not set an HTML <title>, a JSON property, filename, content label or Docusaurus title. Put human-readable representation metadata inside the declared content format or a current documented application field.

No encoding or control-character validation occurs. Do not expose sensitive/internal labels, and never include CR/LF or untrusted text. An empty direct value removes only the transient entry. Test Response for nil.

External references

Created 2026-07-15