Skip to content

http: sendfile

Sending files is a common usage of the http api's. We could make a specialised path for this that is more optimised, e.g. we could totally skip all streams boilerplate and directly read buffers through the fs api and write to the response. Further steps could be to move the whole thing into native land. The recent ioring optimisation in libuv also adds some interesting possibilities.

This currently only contains a stub as a suggestion for anyone that wants to pick it up.

Merge request reports

Loading