Skip to content

vinbero/vinbero_mt_http_lua

Repository files navigation

vinbero_mt_http_lua

GitHub release Github All Releases Build Status license Docker Stars Docker Pulls

A vinbero module for writing lua web application.

Intoduction

Interface implementations

  • MODULE
  • TLOCAL
  • CLOCAL
  • HTTP

Config options

  • vinbero_mt_http_lua.scriptFile(string) : Path of a lua script file. (relative/absolute)
  • vinbero_mt_http_lua.scriptArg(string) : An argument to pass to the lua script file. You can get the value from vinbero.arg in the lua script.

Globals in Lua script

  • vinbero
  • onInit()
  • onRequestStart(client)
  • onRequestHeadersFinish(client)
  • onRequestBodyStart(client)
  • onRequestBody(client, bodyChunk)
  • onRequestBodyFinish(client)
  • onRequestFinish(client)
  • onDestroy()

License

MPL-2.0