Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoder.Headers Property

Represents the RFC message headers in an RFC-2822 compliant message part .

Pascal
property Headers: TIdStrings;

Headers is a read-only TStrings property that represents the RFC message headers in an RFC-2822 compliant message part. Headers is used by TIdMessageDecoder descendants to store the header values parsed from the message part. 

Headers will contain a TStrings representation of header names and values that orignate in RFC-2822 form. For example, the following RFC-2822 message header is stored in Headers in the following form: 

 

RFC-2822 Message Header 
Content-Transfer-Encoding: base64 
Header representation 
Content-Transfer-Encoding=base64 

 

Use TStrings methods and properties to access Header values in TIdMessageDecoder.

   AMsgDecoder.Headers.Add('x-custom-header=somevalue');
   AMsgDecoder.Headers.Values['content-disposition'] := 'inline';
   iPos := AMsgDecoder.Headers.IndexOf('content-type');
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.