-
-
Notifications
You must be signed in to change notification settings - Fork 474
Description
Is your feature request related to a problem? Please describe.
The Range HTTP request header indicates the part of a document that the server should return. Several parts can be requested with one Range header at once, and the server may send back these ranges in a multipart document.
Describe the solution you'd like
Example requesting 3 ranges from files -
Range: bytes=200-1000, 2000-6576, 19000-
Send only those parts of the document in Response.
Describe alternatives you've considered
Currently, the range is hardcoded as follows -
ctx.write(new DefaultFileRegion(raf.getChannel, 0, fileLength))
Manipulate the positions as per request headers instead.
Additional context
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range