I need to provie file download feature in my nitrogen app.
In principle I need to set headers like this:
wf:header("Content-Disposition", "attachment; filename=\"" ++ Filename ++ "\""),
but now I can't find a function in Nitrogen API to send data blocks of my file.
I need to upload file in portions because they might be very large, in addition to that, the files are not available on the local storage but the binary data are obtained from other modules. So in practice I need to handle by myself sending blocks of data to the http stream.
Any idea, or example how to do that, what api function can be used?