RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.SetCustomHeader Method

Replaces the value of a specified custom header.

Pascal
procedure SetCustomHeader(const Name: string; const Value: string);
C++
__fastcall SetCustomHeader(const AnsiString Name, const AnsiString Value);

Call SetCustomHeader to add a new custom header to the list maintained by the CustomHeaders property, or to change the value of one of the headers already in the list. SetCustomHeader locates the header in the list with the name specified by the Name parameter. If a header with that name is in the list, SetCustomHeader replaces the value of that header with the value specified as the Value parameter. If the name was not found, SetCustomHeader adds a new header to the list with the given name and value. 

 

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