Internet Direct (Indy) Version 9.0.2 Beta
TIdProxyConnectionInfo.SetHeaders
Loads header names and values from object properties.

procedure SetHeaders(Headers: TIdHeaderList);
Parameters
Headers: TIdHeaderList
Destination for the header names and values.

Description
SetHeaders is a procedure used to populate the TIdHeaderList specified in Headers with the names and values needed to represent the properties of the object instance. SetHeaders creates a 'Proxy-Authorization:' header using the value of the Authentication object property, when assigned. When Authentication is not assigned and BasicAuthentication is True, SetHeaders creates a TIdBasicAuthentication object instance that is used in Authentication to create the 'Proxy-Authorization:' header values.