Now Response accepts a File object to serve the file as a static file. File system module's read method will return a File object and we can pass the object to the Response constructor.
The basic usage is described as code in main.js, and a test case for it has also been added.
Now Response accepts a File object to serve the file as a static file. File system module's
read
method will return a File object and we can pass the object to the Response constructor.The basic usage is described as code in
main.js
, and a test case for it has also been added.