Skip to main content

context_to_lua

Function context_to_lua 

Source
fn context_to_lua(lua: &Lua, ctx: &Context) -> LuaResult<LuaTable>
Expand description

Marshals a Context into a Lua table with request, response, and message sub-tables. Header and query-param values become 1-indexed arrays of strings; bodies become Lua strings; message values are converted from JSON. errors is not exposed to scripts.