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

Function luaContextGetBody

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

Source from the content-addressed store, hash-verified

208}
209
210func luaContextGetBody(l *lua.LState) int {
211 ctx := luaCheckContext(l)
212 if cb, ok := ctx.Get(gin.BodyBytesKey); ok {
213 if cbb, ok := cb.([]byte); ok {
214 l.Push(lua.LString(cbb))
215 return 1
216 }
217 }
218 l.Push(lua.LString(""))
219 return 1
220}
221
222func luaContextGetQuery(l *lua.LState) int {
223 ctx := luaCheckContext(l)

Callers

nothing calls this directly

Calls 2

luaCheckContextFunction · 0.85
PushMethod · 0.65

Tested by

no test coverage detected