hara.runtime.basic.impl.process-lua

+client-basic+

+client-ws+

+lua-basic+

+lua-basic-config+

+lua-basic-script-emit+

+lua-local-rocks-shell+

+lua-nginx-basic-config+

+lua-nginx-oneshot-config+

+lua-nginx-verify-config+

+lua-nginx-websocket-config+

+lua-oneshot+

+lua-oneshot-config+

+lua-verify+

+lua-verify-config+

+lua-websocket+

+lua-websocket-config+

+program-init+

+program-init-nginx+

registers nginx Lua programs with the same executable matrix as base Lua, but defaults nginx contexts to :resty.

default-basic-client

(default-basic-client port & [{:keys [host]}])

default-body-transform

added in 4.0

(default-body-transform input mopts)

transform code for return

(default-body-transform 1 2 3 {}) => ’(do (return 1 2 3))

(default-body-transform 1 2 3 {:bulk true}) => ’(do 1 2 (return 3))

default-body-wrap

added in 4.1

(default-body-wrap forms)

wraps body forms in a local helper so inline defs remain callable within the same Lua eval scope.

default-oneshot-wrap

(default-oneshot-wrap body)

default-websocket-client

(default-websocket-client port & [{:keys [host]}])

lua-basic-script-globalize-entry

added in 4.1

(lua-basic-script-globalize-entry body {:keys [entry]})

avoids Lua’s local-variable cap by emitting basic runtime script deps as globals.

normalize-forms

added in 4.1

(normalize-forms input mopts)

normalizes runtime input into a flat sequence of Lua statements.