Internet Direct (Indy) Version 9.0.1 Beta
|
function GenerateHeader: TIdHeaderList;
For the Content-Type header, GenerateHeader compares the MIME Encoding for the message to the message encoders used for any MessageParts. If a message encoder contains a Charset value, it is appended to ContentType. If Ecoding contains a value other than meMIME, and the message has multipart/related or multipart/alternative message parts, an EIdMessageException will be raised.
GenerateHeader appends all values in ExtraHeaders to the TIdHeaderList return value. The application must free the TIdHeaderList returned by GenerateHeader.