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.