core-wg / corrclar

Corrections and Clarifications to CoRE standards
Other
0 stars 0 forks source link

Content-coding #8

Closed ektrah closed 2 months ago

ektrah commented 5 years ago

Errata ID: 4954 Type: Editorial Reported By: Klaus Hartke Date Reported: 2017-02-28

Section 12.3 says/should say:

-CoAP does not include a separate way to convey content-encoding
+CoAP does not include a separate way to convey content-coding
 information with a request or response, and for that reason the
-content-encoding is also specified for each identifier (if any).  If
-multiple content-encodings will be used with a media type, then a
+content-coding is also specified for each identifier (if any).  If
+multiple content-codings will be used with a media type, then a
 separate Content-Format identifier for each is to be registered.
 Similarly, other parameters related to an Internet media type, such
 as level, can be defined for a CoAP Content-Format entry.

-+--------------------------+----------+----+------------------------+
-| Media type               | Encoding | ID | Reference              |
-+--------------------------+----------+----+------------------------+
++--------------------------+----------------+----+------------------+
+| Media type               | Content coding | ID | Reference        |
++--------------------------+----------------+----+------------------+

A CoAP Content-Format is the combination of an Internet Media Type with an HTTP Content Coding, as correctly explained in the first paragraphs of Section 12.3. However, the next paragraph (the original text above) incorrectly uses the term "content-encoding". The correct term is "content-coding", as shown in the corrected text.

Examples for valid CoAP Content-Format registrations:

Examples for invalid CoAP Content-Format registrations:

cabo commented 5 years ago

Hold for update; use these examples in a clarification.

cabo commented 2 years ago

More recently, with the terminology established in RFC 9193, we probably want to change the heading "Media-Type" to "Content-Type" as well.

draft-ietf-core-problem-details says:

In the registry as defined by {{Section 12.3 of -coap}} at the time of writing, the column "Content-Type" is called "Media type" and the column "Content Coding" is called "Encoding". [^remove]