Internet Direct (Indy) Version 9.0.1 Beta
TIdRequestHeaderInfo.SetHeaders
Stores header properties in the specified list of header names and values.

procedure SetHeaders; override;
Description
SetHeaders is an overriden procedure that populates the TIdHeaderList specified in Headers. SetHeaders calls the inherited method to process Entity headers and ExtraHeaders. SetHeaders then adds non-blank HTTP request property values to the list of header names and values.

SetHeaders also constructs the 'Range' header using the values in ContentRangeStart and ContentRangeEnd. If Authentication has been assigned, or BasicAuthentication is True, SetHeaders will construct an 'Authorization' header using the credentials returned by the TIdAuthentication object instance.

SetHeaders also calls ProxyParams.SetHeaders to allow construction of Proxy-specific header names and values.