Expand description
Lua hook pipeline for folk-plugin-http.
Hook scripts are pre-compiled to Lua bytecode at startup and executed
per-request on a fresh mlua::Lua VM instance. Sync hooks run in
the request critical path; async hooks fire-and-forget via tokio::spawn.
Structs§
- Hook
Engine - Holds all pre-compiled hooks for the lifetime of the server.
- Request
Context - Context passed to
request.beforeandrequest.errorhooks. - Response
Context - Context passed to
response.headersandresponse.afterhooks.
Enums§
- Hook
Result - Outcome of running a hook stage.