Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Range requests and 206 responses #60

Open
seancribbs opened this issue Jul 8, 2012 · 0 comments
Open

Support Range requests and 206 responses #60

seancribbs opened this issue Jul 8, 2012 · 0 comments
Labels
Milestone

Comments

@seancribbs
Copy link
Member

RFC 2616, Section 3.12

HTTP/1.1 allows a client to request that only part (a range of) the response entity be included within the response. HTTP/1.1 uses range units in the Range (section 14.35) and Content-Range (section 14.16) header fields. An entity can be broken down into subranges according to various structural units.

 range-unit       = bytes-unit | other-range-unit
 bytes-unit       = "bytes"
 other-range-unit = token

The only range unit defined by HTTP/1.1 is "bytes". HTTP/1.1 implementations MAY ignore ranges specified using other units.

HTTP/1.1 has been designed to allow implementations of applications that do not depend on knowledge of ranges.

References: 3.12 Range Units, 14.35 Range, 14.16 Content-Range, 14.27 If-Range

Note that according to 14.35.2, "A server MAY ignore the Range header.", so Webmachine is still compliant without this feature, but it is incredibly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant