- x and y are inclusive, matching the behavior from HTTP Range Requests
*
can be substituted for end-of-file
?bytes=0:*
is the entire file (i.e. to fulfill HTTP Range Request x-
requests)
- Negative numbers can be used for referring to bytes from the end of a file
?bytes=-1024:*
is the last 1024 bytes of a file (i.e. to fulfill HTTP Range Request -y
requests)
- It is also permissible (unlike with HTTP Range Requests) to ask for the range of 500 bytes from the beginning of the file to 1000 bytes from the end by
?bytes=499:-1000