Ignore:
Timestamp:
26/01/14 03:52:34 (7 years ago)
Author:
fielding@…
Message:

Make field-value ABNF match the prose for excluding leading and trailing OWS; remove new requirement (not in 2616 and not implemented by anyone) that recipients SHOULD strip multiple whitespace or HTAB inside field-content (obs-fold is handled elsewhere); see #531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r2583 r2584  
    12031203  <x:anchor-alias value="field-name"/>
    12041204  <x:anchor-alias value="field-value"/>
     1205  <x:anchor-alias value="field-vchar"/>
    12051206  <x:anchor-alias value="obs-fold"/>
    12061207<t>
     
    12091210   and optional trailing whitespace.
    12101211</t>
    1211 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="header-field"/><iref primary="true" item="Grammar" subitem="field-name"/><iref primary="true" item="Grammar" subitem="field-value"/><iref primary="true" item="Grammar" subitem="field-content"/><iref primary="true" item="Grammar" subitem="obs-fold"/>
     1212<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="header-field"/><iref primary="true" item="Grammar" subitem="field-name"/><iref primary="true" item="Grammar" subitem="field-value"/><iref primary="true" item="Grammar" subitem="field-vchar"/><iref primary="true" item="Grammar" subitem="field-content"/><iref primary="true" item="Grammar" subitem="obs-fold"/>
    12121213  <x:ref>header-field</x:ref>   = <x:ref>field-name</x:ref> ":" <x:ref>OWS</x:ref> <x:ref>field-value</x:ref> <x:ref>OWS</x:ref>
     1214
    12131215  <x:ref>field-name</x:ref>     = <x:ref>token</x:ref>
    12141216  <x:ref>field-value</x:ref>    = *( <x:ref>field-content</x:ref> / <x:ref>obs-fold</x:ref> )
    1215   <x:ref>field-content</x:ref>  = *( <x:ref>HTAB</x:ref> / <x:ref>SP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
    1216   <x:ref>obs-fold</x:ref>       = <x:ref>CRLF</x:ref> ( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
     1217  <x:ref>field-content</x:ref>  = <x:ref>field-vchar</x:ref> [ *( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> ) <x:ref>field-vchar</x:ref> ]
     1218  <x:ref>field-vchar</x:ref>    = <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref>
     1219
     1220  <x:ref>obs-fold</x:ref>       = <x:ref>CRLF</x:ref> 1*( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
    12171221                 ; obsolete line folding
    12181222                 ; see <xref target="field.parsing"/>
     
    13631367   the last non-whitespace octet of the field value ought to be excluded by
    13641368   parsers when extracting the field value from a header field.
    1365 </t>
    1366 <t>
    1367    A recipient of field-content containing multiple sequential octets of
    1368    optional (OWS) or required (RWS) whitespace &SHOULD; either replace the
    1369    sequence with a single SP or transform any non-SP octets in the sequence to
    1370    SP octets before interpreting the field value or forwarding the message
    1371    downstream.
    13721369</t>
    13731370<t>
     
    53375334 / obs-text
    53385335
    5339 <x:ref>field-content</x:ref> = *( HTAB / SP / VCHAR / obs-text )
     5336<x:ref>field-content</x:ref> = field-vchar [ *( SP / HTAB ) field-vchar ]
    53405337<x:ref>field-name</x:ref> = token
    53415338<x:ref>field-value</x:ref> = *( field-content / obs-fold )
     5339<x:ref>field-vchar</x:ref> = VCHAR / obs-text
    53425340<x:ref>fragment</x:ref> = &lt;fragment, defined in [RFC3986], Section 3.5&gt;
    53435341
     
    53535351<x:ref>method</x:ref> = token
    53545352
    5355 <x:ref>obs-fold</x:ref> = CRLF ( SP / HTAB )
     5353<x:ref>obs-fold</x:ref> = CRLF 1*( SP / HTAB )
    53565354<x:ref>obs-text</x:ref> = %x80-FF
    53575355<x:ref>origin-form</x:ref> = absolute-path [ "?" query ]
Note: See TracChangeset for help on using the changeset viewer.