Ignore:
Timestamp:
20/01/13 16:26:24 (8 years ago)
Author:
fielding@…
Message:

(editorial) move byte range examples closer to defs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p5-range.xml

    r2144 r2145  
    235235</t>
    236236<t>
     237   Examples of byte-ranges-specifier values:
     238  <list style="symbols">
     239     <t>The first 500 bytes (byte offsets 0-499, inclusive):
     240<figure><artwork type="example" x:indent-with="   ">
     241  bytes=0-499
     242</artwork></figure>
     243    </t>
     244     <t>The second 500 bytes (byte offsets 500-999, inclusive):
     245<figure><artwork type="example" x:indent-with="   ">
     246  bytes=500-999
     247</artwork></figure>
     248    </t>
     249  </list>
     250</t>
     251<t>
    237252   If the last-byte-pos value is present, it &MUST; be greater than or
    238253   equal to the first-byte-pos in that byte-range-spec, or the byte-range-spec
     
    260275   this form specifies the last N bytes of a representation.) If the
    261276   representation is shorter than the specified suffix-length, the entire
    262    representation is used.
     277   representation is used. For example (assuming a representation of
     278   length 10000):
     279  <list style="symbols">
     280     <t>The final 500 bytes (byte offsets 9500-9999, inclusive):
     281<figure><artwork type="example" x:indent-with="   ">
     282  bytes=-500
     283</artwork></figure>
     284    Or:
     285<figure><artwork type="example" x:indent-with="   ">
     286  bytes=9500-
     287</artwork></figure>
     288    </t>
     289     <t>The first and last bytes only (bytes 0 and 9999):
     290<figure><artwork type="example" x:indent-with="   ">
     291  bytes=0-0,-1
     292</artwork></figure>
     293     </t>
     294     <t>Other valid (but not canonical) specifications of the second 500
     295        bytes (byte offsets 500-999, inclusive):
     296<figure><artwork type="example" x:indent-with="   ">
     297  bytes=500-600,601-999
     298  bytes=500-700,601-999
     299</artwork></figure>
     300     </t>
     301  </list>
    263302</t>
    264303<t>
     
    280319   potentially large decimal numerals and prevent parsing errors due to integer
    281320   conversion overflows.
    282 </t>
    283 <t>
    284    Examples of byte-ranges-specifier values (assuming a representation of
    285    length 10000):
    286   <list style="symbols">
    287      <t>The first 500 bytes (byte offsets 0-499, inclusive):
    288 <figure><artwork type="example" x:indent-with="   ">
    289   bytes=0-499
    290 </artwork></figure>
    291     </t>
    292      <t>The second 500 bytes (byte offsets 500-999, inclusive):
    293 <figure><artwork type="example" x:indent-with="   ">
    294   bytes=500-999
    295 </artwork></figure>
    296     </t>
    297      <t>The final 500 bytes (byte offsets 9500-9999, inclusive):
    298 <figure><artwork type="example" x:indent-with="   ">
    299   bytes=-500
    300 </artwork></figure>
    301     Or:
    302 <figure><artwork type="example" x:indent-with="   ">
    303   bytes=9500-
    304 </artwork></figure>
    305     </t>
    306      <t>The first and last bytes only (bytes 0 and 9999):
    307 <figure><artwork type="example" x:indent-with="   ">
    308   bytes=0-0,-1
    309 </artwork></figure>
    310      </t>
    311      <t>Other valid (but not canonical) specifications of the second 500
    312         bytes (byte offsets 500-999, inclusive):
    313 <figure><artwork type="example" x:indent-with="   ">
    314   bytes=500-600,601-999
    315   bytes=500-700,601-999
    316 </artwork></figure>
    317      </t>
    318   </list>
    319321</t>
    320322</section>
Note: See TracChangeset for help on using the changeset viewer.