tengine lua 开源一 调用内部接口高效发送文件
开源自己封装的sendfile 模块,可以高效的通过lua发送文件
源码地址:https://github.com/weinyzhou/Lua-sendfile
调用方法
local sendfile=require "sendfile";
sendfile.call(filename,-1,-1);
第一个参数文件名,
第二个参数开始位置
第三个参数长度
介绍了一个用Lua编写的开源sendfile模块,该模块能够高效地发送文件。通过简单的API调用,开发者可以指定文件名、开始位置及长度来实现文件的快速传输。
源码地址:https://github.com/weinyzhou/Lua-sendfile
调用方法
local sendfile=require "sendfile";
sendfile.call(filename,-1,-1);
第一个参数文件名,
第二个参数开始位置
第三个参数长度
2623

被折叠的 条评论
为什么被折叠?