Skip to content

Commit

Permalink
BG-1: add http-parameters reference, clean up Content-Coding defn
Browse files Browse the repository at this point in the history
  • Loading branch information
cabo committed Aug 25, 2021
1 parent e9408b8 commit 90a3deb
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions draft-ietf-core-senml-data-ct.md
Expand Up @@ -44,9 +44,11 @@ normative:
IANA.senml:
RFC7252: coap
RFC5234: abnf
RFC7230: http0
RFC7231: http
IANA.media-types: media-types
IANA.core-parameters: core-parameters
IANA.http-parameters: http-parameters
informative:
RFC4648: base
RFC8949: cbor
Expand Down Expand Up @@ -90,9 +92,9 @@ Content-Format ({{Section 12.3 of -coap}}) provides just this
information; enclosing a Content-Format number (in this case number 60 as
defined for content-type application/cbor in {{-cbor}}) in the Record is
illustrated in {{ex-2}}. All registered CoAP Content-Formats are listed
in the Content-Formats
{{subregistry<IANA.core-parameters}}{: relative="#content-formats"}
of the CoRE Parameters registry {{-core-parameters}}.
in the {{content-formats (COAP Content-Formats
registry)<IANA.core-parameters}} {{-core-parameters}} as specified by
{{Section 12.3 of -coap}}.

~~~
{"n":"nfc-reader", "vd":"gmNmb28YKg", "ct":"60"}
Expand Down Expand Up @@ -134,17 +136,19 @@ Content-Type:
In HTTP and many other protocols, used in a `Content-Type` header field.

Content-Coding:
: a registered name for an encoding transformation that has been or
can be applied to a representation. Confusingly, in HTTP the
Content-Coding is then given in a header field called
`Content-Encoding`; we **never** use this term (except when we are
in error).
: A name registered in the {{content-coding (HTTP Content Coding
registry)<IANA.http-parameters}} {{-http-parameters}} as specified by
{{Section 8.5 of RFC7230}}, indicating an encoding transformation
with semantics further specified in {{Section 3.1.2.1 of RFC7231}}.
Confusingly, in HTTP the Content-Coding is found in a header field
called "Content-Encoding", however "Content-Coding" is the correct
term.

Content-Format:
: the combination of a Content-Type and a Content-Coding, identified
by (1) a numeric identifier defined by the "CoAP Content-Formats"
{{subregistry<IANA.core-parameters}}{: relative="#content-formats"}
of {{-core-parameters}} as per {{-coap}} or (2) a Content-Format-String.
by (1) a numeric identifier defined in the {{content-formats (COAP
Content-Formats registry)<IANA.core-parameters}} {{-core-parameters}}
as per {{Section 12.3 of -coap}}, or (2) a Content-Format-String.

Content-Format-String:
: the string representation of the combination of a Content-Type and a Content-Coding.
Expand Down

0 comments on commit 90a3deb

Please sign in to comment.