On Thu, 27 Oct 2016 14:11:46 GMT, Desislav Stanchev wrote:
Hello,
I'm new to D programing.I want to ask some entry level question: how I can return large file in chunks... did not find any example in github.
I'm trying to make simple file server to serve video files.thanks for your help in advance..
The canonical way would be to support/use HTTP ranges. There is a ticket for this, but I didn't yet implement this for vibe.d's file server. If you want to start experimenting with it, you could copy the sendFileImpl
function and apply the patch in that ticket. A full version of this requires some more work, but I will try to get to that for the next release.