Stream content to function response body

Hello,

I was wondering if it’s possible to stream files to the response body.
I don"t see any ways to do this with a netlify function:

server.on('request', (req, res) => {
  const src = fs.createReadStream('./big.file');
  src.pipe(res);
});

Thanks!

1 Like