tengine lua 開源一 調用內部接口高效發送文件
源碼地址:https://github.com/weinyzhou/Lua-sendfile
調用方法
local sendfile=require "sendfile";
sendfile.call(filename,-1,-1);
第一個參數文件名,
第二個參數開始位置
第三個參數長度
源碼地址:https://github.com/weinyzhou/Lua-sendfile
調用方法
local sendfile=require "sendfile";
sendfile.call(filename,-1,-1);
第一個參數文件名,
第二個參數開始位置
第三個參數長度