making up new header field syntax...

Here's a recent example I found (when looking for uses of JFV):

<https://w3c.github.io/webappsec-clear-site-data/#header>:

> The Clear-Site-Data HTTP response header field sends a signal to the user agent that it ought to remove all data of a certain set of types. The header is represented by the following ABNF [RFC5234]:
> 
> Clear-Site-Data = 1#( DQUOTE ( data-type | extension-type ) DQUOTE )
> data-type = "cache" | "cookies" | "storage" | "executionContexts"
> extension-type = 1*( ALPHA | "-")
> ; #rule is defined in Section 7 of RFC 7230.
> ; DQUOTE and ALPHA are defined in Appendix B.1 of RFC 5234.

Issues:

a) the list rule is defined in RFC 7230, not RFC 5234

b) the syntax doesn't allow whitespace, but the examples use it

c) things look like quoted-strings, but aren't quoted-strings

d) tokens not allowed

Best regards, Julian

Received on Sunday, 25 June 2017 11:53:13 UTC