| 80 | } |
| 81 | |
| 82 | static int |
| 83 | ts_lua_http_cntl_get(lua_State *L) |
| 84 | { |
| 85 | int cntl_type; |
| 86 | int64_t value; |
| 87 | ts_lua_http_ctx *http_ctx; |
| 88 | |
| 89 | GET_HTTP_CONTEXT(http_ctx, L); |
| 90 | |
| 91 | cntl_type = luaL_checkinteger(L, 1); |
| 92 | |
| 93 | value = int64_t(TSHttpTxnCntlGet(http_ctx->txnp, TSHttpCntlType(cntl_type))); |
| 94 | |
| 95 | lua_pushnumber(L, value); |
| 96 | |
| 97 | return 1; |
| 98 | } |
nothing calls this directly
no test coverage detected