Changeset 2263


Ignore:
Timestamp:
May 19, 2013, 5:24:21 PM (6 years ago)
Author:
fielding@…
Message:

Change header field trailing whitespace from BWS to OWS to be consistent with suggested in-place white-out; demote an untargeted requirement on removing leading and trailing whitespace to a suggestion on parser handling of field-value to be consistent with the ABNF; addresses #442

Location:
draft-ietf-httpbis/latest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/httpbis.abnf

    r2181 r2263  
    134134field-value = *( field-content / obs-fold )
    135135first-byte-pos = 1*DIGIT
    136 header-field = field-name ":" OWS field-value BWS
     136header-field = field-name ":" OWS field-value OWS
    137137hour = 2DIGIT
    138138http-URI = "http://" authority path-abempty [ "?" query ]
  • draft-ietf-httpbis/latest/p1-messaging.html

    r2262 r2263  
    11951195      <div id="rfc.figure.u.17"></div><pre class="inline"><span id="rfc.iref.g.33"></span>  <a href="#status.line" class="smpl">reason-phrase</a>  = *( <a href="#core.rules" class="smpl">HTAB</a> / <a href="#core.rules" class="smpl">SP</a> / <a href="#core.rules" class="smpl">VCHAR</a> / <a href="#rule.quoted-string" class="smpl">obs-text</a> )
    11961196</pre><h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a>&nbsp;<a id="header.fields" href="#header.fields">Header Fields</a></h2>
    1197       <p id="rfc.section.3.2.p.1">Each HTTP header field consists of a case-insensitive field name followed by a colon (":"), optional whitespace, and the field
    1198          value.
    1199       </p>
    1200       <div id="rfc.figure.u.18"></div><pre class="inline"><span id="rfc.iref.g.34"></span><span id="rfc.iref.g.35"></span><span id="rfc.iref.g.36"></span><span id="rfc.iref.g.37"></span><span id="rfc.iref.g.38"></span>  <a href="#header.fields" class="smpl">header-field</a>   = <a href="#header.fields" class="smpl">field-name</a> ":" <a href="#rule.whitespace" class="smpl">OWS</a> <a href="#header.fields" class="smpl">field-value</a> <a href="#rule.whitespace" class="smpl">BWS</a>
     1197      <p id="rfc.section.3.2.p.1">Each HTTP header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the
     1198         field value, and optional trailing whitespace.
     1199      </p>
     1200      <div id="rfc.figure.u.18"></div><pre class="inline"><span id="rfc.iref.g.34"></span><span id="rfc.iref.g.35"></span><span id="rfc.iref.g.36"></span><span id="rfc.iref.g.37"></span><span id="rfc.iref.g.38"></span>  <a href="#header.fields" class="smpl">header-field</a>   = <a href="#header.fields" class="smpl">field-name</a> ":" <a href="#rule.whitespace" class="smpl">OWS</a> <a href="#header.fields" class="smpl">field-value</a> <a href="#rule.whitespace" class="smpl">OWS</a>
    12011201  <a href="#header.fields" class="smpl">field-name</a>     = <a href="#rule.token.separators" class="smpl">token</a>
    12021202  <a href="#header.fields" class="smpl">field-value</a>    = *( <a href="#header.fields" class="smpl">field-content</a> / <a href="#header.fields" class="smpl">obs-fold</a> )
     
    12691269      <p id="rfc.section.3.2.4.p.2">A field value is preceded by optional whitespace (OWS); a single SP is preferred. The field value does not include any leading
    12701270         or trailing white space: OWS occurring before the first non-whitespace octet of the field value or after the last non-whitespace
    1271          octet of the field value is ignored and <em class="bcp14">SHOULD</em> be removed before further processing (as this does not change the meaning of the header field).
     1271         octet of the field value ought to be excluded by parsers when extracting the field value from a header field.
    12721272      </p>
    12731273      <p id="rfc.section.3.2.4.p.3">A recipient of field-content containing multiple sequential octets of optional (OWS) or required (RWS) whitespace <em class="bcp14">SHOULD</em> either replace the sequence with a single SP or transform any non-SP octets in the sequence to SP octets before interpreting
     
    30193019<a href="#header.fields" class="smpl">field-value</a> = *( field-content / obs-fold )
    30203020
    3021 <a href="#header.fields" class="smpl">header-field</a> = field-name ":" OWS field-value BWS
     3021<a href="#header.fields" class="smpl">header-field</a> = field-name ":" OWS field-value OWS
    30223022<a href="#http.uri" class="smpl">http-URI</a> = "http://" authority path-abempty [ "?" query ]
    30233023<a href="#https.uri" class="smpl">https-URI</a> = "https://" authority path-abempty [ "?" query ]
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r2262 r2263  
    11661166<t>
    11671167   Each HTTP header field consists of a case-insensitive field name
    1168    followed by a colon (":"), optional whitespace, and the field value.
     1168   followed by a colon (":"), optional leading whitespace, the field value,
     1169   and optional trailing whitespace.
    11691170</t>
    11701171<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"/>
    1171   <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>BWS</x:ref>
     1172  <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>
    11721173  <x:ref>field-name</x:ref>     = <x:ref>token</x:ref>
    11731174  <x:ref>field-value</x:ref>    = *( <x:ref>field-content</x:ref> / <x:ref>obs-fold</x:ref> )
     
    12981299   A field value is preceded by optional whitespace (OWS); a single SP is
    12991300   preferred. The field value does not include any leading or trailing white
    1300    space: OWS occurring before the first non-whitespace octet of the
    1301    field value or after the last non-whitespace octet of the field value
    1302    is ignored and &SHOULD; be removed before further processing (as this does
    1303    not change the meaning of the header field).
     1301   space: OWS occurring before the first non-whitespace octet of the field
     1302   value or after the last non-whitespace octet of the field value ought to be
     1303   excluded by parsers when extracting the field value from a header field.
    13041304</t>
    13051305<t>
     
    51025102<x:ref>field-value</x:ref> = *( field-content / obs-fold )
    51035103
    5104 <x:ref>header-field</x:ref> = field-name ":" OWS field-value BWS
     5104<x:ref>header-field</x:ref> = field-name ":" OWS field-value OWS
    51055105<x:ref>http-URI</x:ref> = "http://" authority path-abempty [ "?" query ]
    51065106<x:ref>https-URI</x:ref> = "https://" authority path-abempty [ "?" query ]
Note: See TracChangeset for help on using the changeset viewer.