Ignore:
Timestamp:
20/01/13 01:58:48 (7 years ago)
Author:
fielding@…
Message:

Cleanup on aisle p5. Addresses #405

Don't refer to Range Units as Range Specifiers;
move requirements on unknown ranges to the header field definitions.
Disentangle the Content-Range ABNF so that it correctly distinguishes between
the three different forms in use and does not allow them to be mixed.
Use the new ABNF alternatives to simplify the prose.

File:
1 edited

Legend:

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

    r2083 r2135  
    1818Content-Length = 1*DIGIT
    1919Content-Location = absolute-URI / partial-URI
    20 Content-Range = byte-content-range-spec / other-content-range-spec
     20Content-Range = byte-content-range / other-content-range
    2121Content-Type = media-type
    2222Date = HTTP-date
     
    7373authority = <authority, defined in [RFC3986], Section 3.2>
    7474authority-form = authority
    75 byte-content-range-spec = bytes-unit SP byte-range-resp-spec "/" ( instance-length / "*" )
    76 byte-range-resp-spec = ( first-byte-pos "-" last-byte-pos ) / "*"
     75byte-content-range = bytes-unit SP ( byte-range-resp "/" unsatisfied-range )
     76byte-range = first-byte-pos "-" last-byte-pos
     77byte-range-resp = byte-range "/" ( complete-length / "*" )
    7778byte-range-set = *( "," OWS ) ( byte-range-spec / suffix-byte-range-spec ) *( OWS "," [ OWS ( byte-range-spec / suffix-byte-range-spec ) ] )
    7879byte-range-spec = first-byte-pos "-" [ last-byte-pos ]
     
    9192codings = content-coding / "identity" / "*"
    9293comment = "(" *( ctext / quoted-cpair / comment ) ")"
     94complete-length = 1*DIGIT
    9395connection-option = token
    9496content-coding = token
     
    135137http-URI = "http://" authority path-abempty [ "?" query ]
    136138https-URI = "https://" authority path-abempty [ "?" query ]
    137 instance-length = 1*DIGIT
    138139language-range = <language-range, defined in [RFC4647], Section 2.1>
    139140language-tag = <Language-Tag, defined in [RFC5646], Section 2.1>
     
    164165opaque-tag = DQUOTE *etagc DQUOTE
    165166origin-form = path-absolute [ "?" query ]
    166 other-content-range-spec = other-range-unit SP other-range-resp-spec
    167 other-range-resp-spec = *CHAR
     167other-content-range = other-range-unit SP other-range-resp
     168other-range-resp = *CHAR
    168169other-range-set = 1*CHAR
    169170other-range-unit = token
     
    221222transfer-parameter = attribute BWS "=" BWS value
    222223type = token
     224unsatisfied-range = "*/" complete-length
    223225uri-host = <host, defined in [RFC3986], Section 3.2.2>
    224226value = word
Note: See TracChangeset for help on using the changeset viewer.