Middleware to parse a Range headerSource:
Adds the requested ranges to the
ranges element of the request
request$ranges is a data frame with two columns,
to. Each row corresponds one requested interval.
When the last
n bytes of the file are requested, the matrix row is set
c(0, -n). When all bytes after a
p position are requested, the
matrix row is set to
If the intervals overlap, then
ranges is not set, i.e. the
header is ignored.
If its syntax is invalid or the unit is not
bytes, then the
Range header is ignored.