rfc-2913

MIME Content Types in Media Feature Expressions

G. Klyne
date2000-09 streamIETF areaapp wgconneg statusPROPOSED STANDARD pages9 canonicalhttps://www.rfc-editor.org/rfc/rfc2913 doi10.17487/RFC2913
This memo defines a media feature tag whose value is a Multipurpose Internet Mail Extensions (MIME) content type. [STANDARDS-TRACK]

Extracted elements (15)

design-rationale §3

Allowing content-type parameters as part of a 'type' tag value was considered but rejected due to concerns about canonicalization, ordering, and case sensitivity. Only exact, case-sensitive character matching is defined for media feature expressions.

email

design-rationale §2

Including MIME content type in feature expressions is useful when all media capability information must be conveyed in a single expression, such as in DSN and MDN extensions that provide a single field for this information.

email

design-rationale §2

The 'type' feature tag is also useful when media features describe inner parts of a MIME composite (e.g., component parts of a 'multipart', files in a compressed archive, or encrypted message data), allowing the content type of inner parts to appear in the outer expression.

email

design-rationale §2

The 'type' feature tag was motivated by the need to include MIME content type information within media feature expressions, since HTTP 1.1 with TCN indicates acceptable content types and media features in different request headers with no way to indicate acceptable combinations.

email, http

interoperability-note §A

String feature matching is case sensitive, so consistent use of lower-case for content type values is essential for matching behavior consistent with MIME content type matching. The canonical form requires all lower-case letters with all whitespace removed.

email

interoperability-note §A

White space must be used consistently in 'type' feature tag values. The canonical form specified by this registration removes all whitespace from content type values.

email

normative-requirement §3 SHOULD

The content type value for the 'type' feature tag must be given without any content-type parameter values. Only lower-case letters should be used.

email

normative-requirement §3 SHOULD

To include information otherwise conveyed in a MIME content-type parameter within media feature expressions, a separate media feature tag should be registered and used in the expression rather than embedding parameters in the 'type' tag value.

email, registry

protocol-element §4.3

For voice messages, the 'type' feature tag can be set to a multipart MIME type such as "multipart/voice-message", where other media features in the expression describe the inner MIME parts rather than mirroring the MIME structure exactly.

email

protocol-element §4.1

The 'type' feature tag can appear within compound feature expressions using the combining algebra from RFC 2533, enabling expressions like (& (type="text/plain") (charset=US-ASCII) (color=binary) (paper-size=A4)).

email

protocol-element §3

The 'type' feature tag indicates a MIME media content type appearing in a 'Content-type:' header of corresponding MIME-formatted data. Its value must be a string of the form "type/subtype" using only lower-case letters, with no content-type parameter values included.

email, registry

protocol-element §A

The 'type' feature tag value consists of the MIME media type and subtype presented using all lower-case letters with any whitespace characters removed, as in "image/tiff" or "text/plain".

email

protocol-element §4.4

Web browser capability expressions can use the 'type' tag in disjunctions to indicate support for multiple content types each with their own associated feature constraints, as shown in the example combining text/html, text/plain, image/gif, and image/jpeg capabilities.

email, http

registry §5

This document registers the 'Type' feature tag in the IETF tree (subject to IETF Consensus policies per RFC 2434), with ASN.1 identifier 1.3.6.1.8.1.30 assigned by IANA. The tag takes string values representing MIME content types.

registry, email

security-consideration §6

This memo is not believed to introduce any security considerations beyond those already inherent in the use of media feature tags and expressions as defined in RFC 2533 and RFC 2506.

security, email