W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2022

Re: Editorial styling inconsistencies when referring to Structured Fields

From: Roberto Polli <robipolli@gmail.com>
Date: Thu, 17 Feb 2022 23:16:45 +0100
Message-ID: <CAP9qbHXqkJx0_peW8_8JzY_Omuucd37c_c-T9YaTHXR5pbK35w@mail.gmail.com>
To: Lucas Pardue <lucaspardue.24.7@gmail.com>
Cc: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Hi Lucas,

Il gio 17 feb 2022, 16:00 Lucas Pardue <lucaspardue.24.7@gmail.com> ha

>> An "exercise" in SF could be to express Accept-Encoding
>> https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.12.5.3
>> accordingly to https://github.com/httpwg/http-extensions/issues/1974
>> without using abnf:  which would be the result?
> Retrofit headers classes these as an SF List [1]. If we wanted to be more
> expansive about a definition, my first suggestion would be
> "The Accept-Encoding header field is an SF List. Members are SF Token
> where the value is a name from the HTTP Content Coding Registry. The SF
> Parameter "q" is defined, the value is SF Decimal representing a quality
> weighting."
> ... where there is commonality between fields, ... a Structured Fields
> typedef that can act as syntactic sugar.

I think that's something useful, and that we should work out.

In other words:
> ""SF Content Coding" is an SF Token when the value is a name from the HTTP
> Content Coding Registry"

Side note: the prose would be longer, since "identity" and "*" token are
allowed value outside the content coding registry.
With abnf you get it at first sight, and that "first sight" feature is
probably something we should provide with SF even if we want to get rid of


> "The Accept-Encoding header field is an SF List; members are SF Content
> Coding."
> snip
> "The Content-Encoding header field is an SF Item of type SF Content
> Coding."
> I'm sure there are many other ways to do this, some more open to
> interpretation than not.
> Cheers,
> Lucas
> [1]
> https://mnot.github.io/I-D/draft-nottingham-http-structure-retrofit.html#name-compatible-fields
>> Have a nice day,
>> R.
Received on Thursday, 17 February 2022 22:17:10 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 17 February 2022 22:17:11 UTC