Web.HTTPApp.TWebResponse.SetCustomHeader

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetCustomHeader(const Name, Value: string);

C++

void __fastcall SetCustomHeader(const System::UnicodeString Name, const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebResponse

Description

Replaces the value of a specified custom header.

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.

See Also