Topic Path: Symbol Reference > Classes > TIdProxyConnectionInfo Class > TIdProxyConnectionInfo Methods > SetHeaders Method
TIdProxyConnectionInfo.SetHeaders Method

Loads header names and values from object properties.

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

SetHeaders is a procedure used to populate the TIdHeaderList specified in Headers with the names and values needed to represent the properties for a proxied connection. 

SetHeaders creates a 'Proxy-Authorization:' header using the value from the Authentication 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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.