Web.HTTPApp.TWebResponse.CustomHeaders
Delphi
property CustomHeaders: TStrings read FCustomHeaders write SetCustomHeaders;
C++
__property System::Classes::TStrings* CustomHeaders = {read=FCustomHeaders, write=SetCustomHeaders};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TWebResponse |
Description
Lists message header strings that are added to the response message before it is sent.
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.