This class is intended to provide a wrapper for MIME messages permitting easy access to the contents of a message and providing a basis for parsing an unparsing messages that have arrived via email or as a web document.
The class keeps track of all the document headers, and provides methods for modifying the headers that apply to a document and for looking at the header structures, by providing an info dictionary containing the various parts of a header.
The common dictionary keys used for elements provided for all headers are -
This method may be called to add a header to the document. The header must be a mutable dictionary object that contains at least the fields that are standard for all headers.
This method returns an array containing NSDictionary objects representing the headers associated with the document.
The order of the headers in the array is the order of the headers in the document.