MCPcopy Create free account
hub / github.com/chanify/chanify / luaContextGetQuery

Function luaContextGetQuery

core/webhook.go:222–230  ·  view source on GitHub ↗
(l *lua.LState)

Source from the content-addressed store, hash-verified

220}
221
222func luaContextGetQuery(l *lua.LState) int {
223 ctx := luaCheckContext(l)
224 if v, ok := ctx.GetQuery(l.CheckString(2)); ok {
225 l.Push(lua.LString(v))
226 } else {
227 l.Push(lua.LNil)
228 }
229 return 1
230}
231
232func luaContextGetHeader(l *lua.LState) int {
233 ctx := luaCheckContext(l)

Callers

nothing calls this directly

Calls 2

luaCheckContextFunction · 0.85
PushMethod · 0.65

Tested by

no test coverage detected