Internet Direct (Indy)
Home
PreviousUpNext
TIdProxyConnectionInfo.SetHeaders Method

Loads header names and values from object properties.

Pascal
procedure SetHeaders(
    Headers: TIdHeaderList
);
Parameters 
Description 
Headers 
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.