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

THTTPHeader.SetCustomHeader

Sets a custom header field value by name

Declaration

Source position: httpdefs.pp line 398

public procedure THTTPHeader.SetCustomHeader(

  const Name: string;

  const Value: string

); virtual;

Arguments

Name

  

Name of the custom header field

Value

  

Value to set for the custom header field

Description

SetCustomHeader assigns a value to a custom (non-standard) HTTP header field. This allows setting application-specific header extensions beyond standard HTTP headers.


Documentation generated on: Jan 16 2026