Changeset 352


Ignore:
Timestamp:
Nov 12, 2008, 3:02:03 PM (11 years ago)
Author:
julian.reschke@…
Message:

s/chunk-extension/chunk-ext/ (related to #36)

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

Legend:

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

    r351 r352  
    10651065                   <a href="#core.rules" class="smpl">CRLF</a>
    10661066 
    1067   <a href="#chunked.transfer.encoding" class="smpl">chunk</a>          = <a href="#chunked.transfer.encoding" class="smpl">chunk-size</a> [ <a href="#chunked.transfer.encoding" class="smpl">chunk-extension</a> ] <a href="#core.rules" class="smpl">CRLF</a>
     1067  <a href="#chunked.transfer.encoding" class="smpl">chunk</a>          = <a href="#chunked.transfer.encoding" class="smpl">chunk-size</a> [ <a href="#chunked.transfer.encoding" class="smpl">chunk-ext</a> ] <a href="#core.rules" class="smpl">CRLF</a>
    10681068                   <a href="#chunked.transfer.encoding" class="smpl">chunk-data</a> <a href="#core.rules" class="smpl">CRLF</a>
    10691069  <a href="#chunked.transfer.encoding" class="smpl">chunk-size</a>     = 1*<a href="#core.rules" class="smpl">HEXDIG</a>
    1070   <a href="#chunked.transfer.encoding" class="smpl">last-chunk</a>     = 1*("0") [ <a href="#chunked.transfer.encoding" class="smpl">chunk-extension</a> ] <a href="#core.rules" class="smpl">CRLF</a>
     1070  <a href="#chunked.transfer.encoding" class="smpl">last-chunk</a>     = 1*("0") [ <a href="#chunked.transfer.encoding" class="smpl">chunk-ext</a> ] <a href="#core.rules" class="smpl">CRLF</a>
    10711071 
    1072   <a href="#chunked.transfer.encoding" class="smpl">chunk-extension</a>= *( ";" <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-name</a> [ "=" <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-val</a> ] )
     1072  <a href="#chunked.transfer.encoding" class="smpl">chunk-ext</a>      = *( ";" <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-name</a> [ "=" <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-val</a> ] )
    10731073  <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-name</a> = <a href="#rule.token.separators" class="smpl">token</a>
    10741074  <a href="#chunked.transfer.encoding" class="smpl">chunk-ext-val</a>  = <a href="#rule.token.separators" class="smpl">token</a> / <a href="#rule.quoted-string" class="smpl">quoted-string</a>
     
    10971097      </p>
    10981098      <p id="rfc.section.3.4.1.p.7">A process for decoding the "chunked" transfer-coding can be represented in pseudo-code as:</p>
    1099       <div id="rfc.figure.u.25"></div><pre class="text">    length := 0
    1100     read chunk-size, chunk-extension (if any) and CRLF
    1101     while (chunk-size &gt; 0) {
    1102        read chunk-data and CRLF
    1103        append chunk-data to entity-body
    1104        length := length + chunk-size
    1105        read chunk-size and CRLF
    1106     }
    1107     read entity-header
    1108     while (entity-header not empty) {
    1109        append entity-header to existing header fields
    1110        read entity-header
    1111     }
    1112     Content-Length := length
    1113     Remove "chunked" from Transfer-Encoding
    1114 </pre><p id="rfc.section.3.4.1.p.9">All HTTP/1.1 applications <em class="bcp14">MUST</em> be able to receive and decode the "chunked" transfer-coding, and <em class="bcp14">MUST</em> ignore chunk-extension extensions they do not understand.
     1099      <div id="rfc.figure.u.25"></div><pre class="text">  length := 0
     1100  read chunk-size, chunk-ext (if any) and CRLF
     1101  while (chunk-size &gt; 0) {
     1102     read chunk-data and CRLF
     1103     append chunk-data to entity-body
     1104     length := length + chunk-size
     1105     read chunk-size and CRLF
     1106  }
     1107  read entity-header
     1108  while (entity-header not empty) {
     1109     append entity-header to existing header fields
     1110     read entity-header
     1111  }
     1112  Content-Length := length
     1113  Remove "chunked" from Transfer-Encoding
     1114</pre><p id="rfc.section.3.4.1.p.9">All HTTP/1.1 applications <em class="bcp14">MUST</em> be able to receive and decode the "chunked" transfer-coding, and <em class="bcp14">MUST</em> ignore chunk-ext extensions they do not understand.
    11151115      </p>
    11161116      <h2 id="rfc.section.3.5"><a href="#rfc.section.3.5">3.5</a>&nbsp;<a id="product.tokens" href="#product.tokens">Product Tokens</a></h2>
     
    27962796                        <li class="indline1"><tt>chunk</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.43"><b>3.4.1</b></a></li>
    27972797                        <li class="indline1"><tt>chunk-data</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.49"><b>3.4.1</b></a></li>
     2798                        <li class="indline1"><tt>chunk-ext</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.46"><b>3.4.1</b></a></li>
    27982799                        <li class="indline1"><tt>chunk-ext-name</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.47"><b>3.4.1</b></a></li>
    27992800                        <li class="indline1"><tt>chunk-ext-val</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.48"><b>3.4.1</b></a></li>
    2800                         <li class="indline1"><tt>chunk-extension</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.46"><b>3.4.1</b></a></li>
    28012801                        <li class="indline1"><tt>chunk-size</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.44"><b>3.4.1</b></a></li>
    28022802                        <li class="indline1"><tt>Chunked-Body</tt>&nbsp;&nbsp;<a class="iref" href="#rfc.iref.g.42"><b>3.4.1</b></a></li>
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r351 r352  
    10111011  <x:anchor-alias value="Chunked-Body"/>
    10121012  <x:anchor-alias value="chunk-data"/>
    1013   <x:anchor-alias value="chunk-extension"/>
     1013  <x:anchor-alias value="chunk-ext"/>
    10141014  <x:anchor-alias value="chunk-ext-name"/>
    10151015  <x:anchor-alias value="chunk-ext-val"/>
     
    10251025   received the full message.
    10261026</t>
    1027 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Chunked-Body"/><iref primary="true" item="Grammar" subitem="chunk"/><iref primary="true" item="Grammar" subitem="chunk-size"/><iref primary="true" item="Grammar" subitem="last-chunk"/><iref primary="true" item="Grammar" subitem="chunk-extension"/><iref primary="true" item="Grammar" subitem="chunk-ext-name"/><iref primary="true" item="Grammar" subitem="chunk-ext-val"/><iref primary="true" item="Grammar" subitem="chunk-data"/><iref primary="true" item="Grammar" subitem="trailer-part"/>
     1027<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Chunked-Body"/><iref primary="true" item="Grammar" subitem="chunk"/><iref primary="true" item="Grammar" subitem="chunk-size"/><iref primary="true" item="Grammar" subitem="last-chunk"/><iref primary="true" item="Grammar" subitem="chunk-ext"/><iref primary="true" item="Grammar" subitem="chunk-ext-name"/><iref primary="true" item="Grammar" subitem="chunk-ext-val"/><iref primary="true" item="Grammar" subitem="chunk-data"/><iref primary="true" item="Grammar" subitem="trailer-part"/>
    10281028  <x:ref>Chunked-Body</x:ref>   = *<x:ref>chunk</x:ref>
    10291029                   <x:ref>last-chunk</x:ref>
     
    10311031                   <x:ref>CRLF</x:ref>
    10321032 
    1033   <x:ref>chunk</x:ref>          = <x:ref>chunk-size</x:ref> [ <x:ref>chunk-extension</x:ref> ] <x:ref>CRLF</x:ref>
     1033  <x:ref>chunk</x:ref>          = <x:ref>chunk-size</x:ref> [ <x:ref>chunk-ext</x:ref> ] <x:ref>CRLF</x:ref>
    10341034                   <x:ref>chunk-data</x:ref> <x:ref>CRLF</x:ref>
    10351035  <x:ref>chunk-size</x:ref>     = 1*<x:ref>HEXDIG</x:ref>
    1036   <x:ref>last-chunk</x:ref>     = 1*("0") [ <x:ref>chunk-extension</x:ref> ] <x:ref>CRLF</x:ref>
     1036  <x:ref>last-chunk</x:ref>     = 1*("0") [ <x:ref>chunk-ext</x:ref> ] <x:ref>CRLF</x:ref>
    10371037 
    1038   <x:ref>chunk-extension</x:ref>= *( ";" <x:ref>chunk-ext-name</x:ref> [ "=" <x:ref>chunk-ext-val</x:ref> ] )
     1038  <x:ref>chunk-ext</x:ref>      = *( ";" <x:ref>chunk-ext-name</x:ref> [ "=" <x:ref>chunk-ext-val</x:ref> ] )
    10391039  <x:ref>chunk-ext-name</x:ref> = <x:ref>token</x:ref>
    10401040  <x:ref>chunk-ext-val</x:ref>  = <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref>
     
    10821082</t>
    10831083<figure><artwork type="code">
    1084     length := 0
    1085     read chunk-size, chunk-extension (if any) and CRLF
    1086     while (chunk-size &gt; 0) {
    1087        read chunk-data and CRLF
    1088        append chunk-data to entity-body
    1089        length := length + chunk-size
    1090        read chunk-size and CRLF
    1091     }
    1092     read entity-header
    1093     while (entity-header not empty) {
    1094        append entity-header to existing header fields
    1095        read entity-header
    1096     }
    1097     Content-Length := length
    1098     Remove "chunked" from Transfer-Encoding
     1084  length := 0
     1085  read chunk-size, chunk-ext (if any) and CRLF
     1086  while (chunk-size &gt; 0) {
     1087     read chunk-data and CRLF
     1088     append chunk-data to entity-body
     1089     length := length + chunk-size
     1090     read chunk-size and CRLF
     1091  }
     1092  read entity-header
     1093  while (entity-header not empty) {
     1094     append entity-header to existing header fields
     1095     read entity-header
     1096  }
     1097  Content-Length := length
     1098  Remove "chunked" from Transfer-Encoding
    10991099</artwork></figure>
    11001100<t>
    11011101   All HTTP/1.1 applications &MUST; be able to receive and decode the
    1102    "chunked" transfer-coding, and &MUST; ignore chunk-extension extensions
     1102   "chunked" transfer-coding, and &MUST; ignore chunk-ext extensions
    11031103   they do not understand.
    11041104</t>
Note: See TracChangeset for help on using the changeset viewer.