View source: R/mw-range-parser.R
| mw_range_parser | R Documentation |
Adds the requested ranges to the ranges element of the request
object. request$ranges is a data frame with two columns, from and
to. Each row corresponds one requested interval.
mw_range_parser()
When the last n bytes of the file are requested, the matrix row is set
to c(0, -n). When all bytes after a p position are requested, the
matrix row is set to c(p, Inf).
If the intervals overlap, then ranges is not set, i.e. the Range
header is ignored.
If its syntax is invalid or the unit is not bytes, then the
Range header is ignored.
Handler function.
Other middleware:
mw_cgi(),
mw_cookie_parser(),
mw_etag(),
mw_json(),
mw_log(),
mw_multipart(),
mw_raw(),
mw_static(),
mw_text(),
mw_urlencoded()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.