Skip to main content

scalar_text

Function scalar_text 

Source
fn scalar_text(value: &LuaValue) -> Option<String>
Expand description

Rebuilds a Context from the table returned by the script’s execute.

request and response (including their headers and bodies) are required and fail unmarshalling if malformed; query_params and message are optional. protocol and errors are not exposed to Lua, so the caller passes the original context’s values through unchanged. Lua text for a scalar. Numbers and booleans are accepted because a script that writes ctx.response.status_code = 200 or a numeric header value means the obvious thing.