11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

and any two-letter initial subtag is an ISO-3166 country code. (Thelast three tags above are not registered tags; all but the last areexamples of tags which could be registered in future.)3.11 Entity TagsEntity tags are used <strong>for</strong> comparing two or more entities from the samerequested resource. HTTP/1.1 uses entity tags in the ETag (section14.19), If-Match (section 14.24), If-None-Match (section 14.26), andIf-Range (section 14.27) header fields. The definition of how theyare used and compared as cache validators is in section 13.3.3. Anentity tag consists of an opaque quoted string, possibly prefixed bya weakness indicator.entity-tag = [ weak ] opaque-tagweak = "W/"opaque-tag = quoted-stringA "strong entity tag" MAY be shared by two entities of a resourceonly if they are equivalent by octet equality.A "weak entity tag," indicated by the "W/" prefix, MAY be shared bytwo entities of a resource only if the entities are equivalent andcould be substituted <strong>for</strong> each other with no significant change insemantics. A weak entity tag can only be used <strong>for</strong> weak comparison.An entity tag MUST be unique across all versions of all entitiesassociated with a particular resource. A given entity tag value MAYbe used <strong>for</strong> entities obtained by requests on different URIs. The useof the same entity tag value in conjunction with entities obtained byrequests on different URIs does not imply the equivalence of thoseentities.3.12 Range UnitsHTTP/1.1 allows a client to request that only part (a range of) theresponse entity be included within the response. HTTP/1.1 uses rangeunits in the Range (section 14.35) and Content-Range (section 14.16)header fields. An entity can be broken down into subranges accordingto various structural units.range-unit = bytes-unit | other-range-unitbytes-unit = "bytes"other-range-unit = tokenThe only range unit defined by HTTP/1.1 is "bytes". HTTP/1.1implementations MAY ignore ranges specified using other units.<strong>Fielding</strong>, et al. Standards Track [Page 30]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!