Files
module-fastwebcore/target/fastweb/interceptor.lua
2026-03-31 16:00:38 +08:00

47 lines
671 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 拦截器
local M = {}
M.module = fw_interceptor
--[[
FUNCTION 增加规则
PARAM
express : 规则
filepath : LUA脚本
--]]
function M.add(express,filepath)
M.module.add(express,filepath)
end
--[[
FUNCTION 是否存在拦截规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.exist(express)
return M.module.exist(express)
end
--[[
FUNCTION 移除拦截规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.remove(express)
return M.module.remove(express)
end
--[[
FUNCTION 清空拦截器
--]]
function M.clear(express)
return M.module.clear(express)
end
return M