traefik2-luascript:用于Traefik v2的LuaScript中间件-源码

上传者: 42141437 | 上传时间: 2021-02-03 23:49:33 | 文件大小: 18KB | 文件类型: ZIP
Traefik2 LuaScript LuaScript是中间件,用于执行可访问API的lua脚本 使用的LUA VM 一个 在 关于 该中间件使您可以用LUA脚本编写业务逻辑 收到传入请求 添加/修改请求标头 添加/修改响应头 中断请求 对外部服务进行HTTP调用 写入traefik日志 使用范例 -- middleware_example.lua local traefik = require ( ' traefik ' ) local log = require ( ' log ' ) local h, err = traefik. getRequestHeader ( ' X-Som

文件下载

资源详情

[{"title":"( 26 个子文件 18KB ) traefik2-luascript:用于Traefik v2的LuaScript中间件-源码","children":[{"title":"traefik2-luascript-master","children":[{"title":"log","children":[{"title":"log.go <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"traefik","children":[{"title":"set_response_header.go <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"traefik.go <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"get_query_arg.go <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"get_request_header.go <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"get_request.go <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"set_request_header.go <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"interrupt.go <span style='color:#111;'> 496B </span>","children":null,"spread":false}],"spread":true},{"title":"lua_test.go <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"http","children":[{"title":"request_args.go <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"http_test.go <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"response.go <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"request_args_test.go <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"send_request.go <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"http.go <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"send.go <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"lua_state.go <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"benchmark","children":[{"title":"config_lua.yml <span style='color:#111;'> 304B </span>","children":null,"spread":false},{"title":"config_pure.yml <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"backend.go <span style='color:#111;'> 277B </span>","children":null,"spread":false},{"title":"middleware.lua <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"vegeta.sh <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"lua_test_http.lua <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 14B </span>","children":null,"spread":false},{"title":"lua.go <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"readme.md <span style='color:#111;'> 8.99KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明