midd-send-file
v0.1.4
Published
send file with headers and promise support
Downloads
10
Readme
send file with headers and promise support
sendFile(req, resp, filePath, options)
Send the file to the client. all send package's options are supported, with the extra options:
- setHeaders: (resp, path, stat)=>void. This is piror to
headersoption. - headers: object. The append headers you want to send
License
Licensed under MIT
Copyright (c) 2017 Tian Jian
