RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.CustomHeaders Property

Lists message header strings that are added to the response message before it is sent.

Pascal
property CustomHeaders: TStrings;
C++
__property TStrings CustomHeaders;

Use CustomHeaders to add header information to the response that can not be specified using the other properties of TWebResponse. Each string in the CustomHeaders property has the form HeaderName=Value, where HeaderName specifies the name of the header, and Value is the value for that header, formatted as a string.

Note: Setting the CustomHeaders property assigns a set of strings to the custom headers list. It does not replace the TStrings object that is the value of CustomHeaders.
Warning: CustomHeaders includes at most one value for each HeaderName. If the HTTP message includes multiple headers with the same name, only the first header's value will appear in CustomHeaders.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!