wiki:HeaderFieldTypes

Version 13 (modified by julian.reschke@…, 8 years ago) (diff)

--

Header Field Types

(for brainstorming around issue ticket #266)

Base ABNF rules

   BWS           = <HTTPbis P1 BWS>
   OWS           = <HTTPbis P1 OWS>

   token         = <HTTPbis P1 token>
   quoted-string = <HTTPbis P1 quoted-string>

   word          = token / quoted-string

   param         = token BWS "=" BWS word

Categories

Parametrized String (PS)

   thing         = <TO BE DONE based on our use cases>

   PS            = thing *( OWS ";" OWS param )

Examples for "thing"

Content-Disposition: token

   attachment
   inline

Content-Type: subset of token plus "/"

   text/html

Link: URI characters (superset of token including ";" but not DQUOTE)

   </uri>

List of Parametrized Strings (LoPS)

   LoPS           = #PS

Categorization of existing fields

Accept
LoPS (where accept extensions are allowed to use a single token form)
Content-Type
PS (but note the special case in RFC2397, Section 3 ("data" URI)
Content-Disposition
PS
Link
LoPS