http_server.lua 307 B

123456789101112131415161718
  1. -- 服务端使用的http协议
  2. PROTO_ROOT = ""
  3. -- 服务端热更新使用
  4. package.loaded[PROTO_ROOT .. "proto-lib.all_http"] = nil
  5. local all_http = require(PROTO_ROOT .. "proto-lib.all_http")
  6. local c2s = all_http.c2s
  7. local s2c = all_http.s2c
  8. local root = {
  9. c2s = c2s,
  10. s2c = s2c
  11. }
  12. return root