Sign inSign up

vinbero/vinbero_mt_http_lua

By vinbero

•Updated almost 7 years ago

Image
0

1.6K

vinbero/vinbero_mt_http_lua repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

156.3 MB

Last updated

almost 7 years ago

docker pull vinbero/vinbero_mt_http_lua