(l *lua.LState)
| 208 | } |
| 209 | |
| 210 | func 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 | |
| 222 | func luaContextGetQuery(l *lua.LState) int { |
| 223 | ctx := luaCheckContext(l) |
nothing calls this directly
no test coverage detected