Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

THTTPHeader.SetFieldByName

Sets a header field value by field name

Declaration

Source position: httpdefs.pp line 389

public procedure THTTPHeader.SetFieldByName(

  const AName: string;

  const AValue: string

);

Arguments

AName

  

Name of the header field to set

AValue

  

Value to set for the header field

Description

SetFieldByName sets a header field value using the field name as a string. This provides a flexible way to set header fields by name rather than by enumerated type.


Documentation generated on: Jan 16 2026