It is an integral component of the Web and HTTP, that the client software can specific its preferences as a set of "accept" headers in a HTTP request. When the MIME headers have been parsed, we know the content material type and any encoding of the MIME entire body. Then we have a MIME parser for dealing with the MIME headers.