Ignore:
Timestamp:
Nov 13, 2008, 12:18:58 PM (11 years ago)
Author:
julian.reschke@…
Message:

Rewrite header ABNFs to spell out whitespace rules, factor out value format definitions. (related to #36)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p3-payload.xml

    r366 r370  
    486486<t>
    487487   The type, subtype, and parameter attribute names are case-insensitive.
    488    Parameter values might or might not be case-sensitive,
    489    depending on the semantics of the parameter name. Linear white space
    490    (LWS) &MUST-NOT; be used between the type and subtype, nor between an
    491    attribute and its value. The presence or absence of a parameter might
     488   Parameter values might or might not be case-sensitive, depending on the
     489   semantics of the parameter name.  The presence or absence of a parameter might
    492490   be significant to the processing of a media-type, depending on its
    493491   definition within the media type registry.
     
    921919  <x:anchor-alias value="Accept"/>
    922920  <x:anchor-alias value="Accept-v"/>
    923   <x:anchor-alias value="accept-extension"/>
     921  <x:anchor-alias value="accept-ext"/>
    924922  <x:anchor-alias value="accept-params"/>
    925923  <x:anchor-alias value="media-range"/>
     
    931929   image.
    932930</t>
    933 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept"/><iref primary="true" item="Grammar" subitem="Accept-v"/><iref primary="true" item="Grammar" subitem="media-range"/><iref primary="true" item="Grammar" subitem="accept-params"/><iref primary="true" item="Grammar" subitem="accept-extension"/>
     931<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept"/><iref primary="true" item="Grammar" subitem="Accept-v"/><iref primary="true" item="Grammar" subitem="media-range"/><iref primary="true" item="Grammar" subitem="accept-params"/><iref primary="true" item="Grammar" subitem="accept-ext"/>
    934932  <x:ref>Accept</x:ref>   = "Accept" ":" <x:ref>OWS</x:ref> <x:ref>Accept-v</x:ref>
    935933  <x:ref>Accept-v</x:ref> = #( <x:ref>media-range</x:ref> [ <x:ref>accept-params</x:ref> ] )
     
    938936                   / ( <x:ref>type</x:ref> "/" "*" )
    939937                   / ( <x:ref>type</x:ref> "/" <x:ref>subtype</x:ref> )
    940                    ) *( ";" <x:ref>parameter</x:ref> )
    941   <x:ref>accept-params</x:ref>  = ";" "q" "=" <x:ref>qvalue</x:ref> *( <x:ref>accept-extension</x:ref> )
    942   <x:ref>accept-extension</x:ref> = ";" <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
     938                   ) *( <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> <x:ref>parameter</x:ref> )
     939  <x:ref>accept-params</x:ref>  = <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> "q=" <x:ref>qvalue</x:ref> *( <x:ref>accept-ext</x:ref> )
     940  <x:ref>accept-ext</x:ref>     = <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
    943941</artwork></figure>
    944942<t>
     
    10571055  <x:ref>Accept-Charset</x:ref>   = "Accept-Charset" ":" <x:ref>OWS</x:ref>
    10581056          <x:ref>Accept-Charset-v</x:ref>
    1059   <x:ref>Accept-Charset-v</x:ref> = 1#( ( <x:ref>charset</x:ref> / "*" ) [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
     1057  <x:ref>Accept-Charset-v</x:ref> = 1#( ( <x:ref>charset</x:ref> / "*" ) [ <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> "q=" <x:ref>qvalue</x:ref> ] )
    10601058</artwork></figure>
    10611059<t>
     
    11001098                     <x:ref>Accept-Encoding-v</x:ref>
    11011099  <x:ref>Accept-Encoding-v</x:ref>  =
    1102                      #( <x:ref>codings</x:ref> [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
     1100                     #( <x:ref>codings</x:ref> [ <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> "q=" <x:ref>qvalue</x:ref> ] )
    11031101  <x:ref>codings</x:ref>            = ( <x:ref>content-coding</x:ref> / "*" )
    11041102</artwork></figure>
     
    11851183                    <x:ref>Accept-Language-v</x:ref>
    11861184  <x:ref>Accept-Language-v</x:ref> =
    1187                     1#( <x:ref>language-range</x:ref> [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
     1185                    1#( <x:ref>language-range</x:ref> [ <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> "q=" <x:ref>qvalue</x:ref> ] )
    11881186  <x:ref>language-range</x:ref>    =
    11891187            &lt;language-range, defined in <xref target="RFC4647" x:fmt="," x:sec="2.1"/>&gt;
     
    25202518  <x:ref>content-disposition</x:ref> = "Content-Disposition" ":" <x:ref>OWS</x:ref>
    25212519                        <x:ref>content-disposition-v</x:ref>
    2522   <x:ref>content-disposition-v</x:ref> = <x:ref>disposition-type</x:ref> *( ";" <x:ref>disposition-parm</x:ref> )
     2520  <x:ref>content-disposition-v</x:ref> = <x:ref>disposition-type</x:ref> *( <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> <x:ref>disposition-parm</x:ref> )
    25232521  <x:ref>disposition-type</x:ref> = "attachment" / <x:ref>disp-extension-token</x:ref>
    25242522  <x:ref>disposition-parm</x:ref> = <x:ref>filename-parm</x:ref> / <x:ref>disp-extension-parm</x:ref>
Note: See TracChangeset for help on using the changeset viewer.