MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_http_cntl_get

Function ts_lua_http_cntl_get

plugins/lua/ts_lua_http_cntl.cc:82–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static int
83ts_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}

Callers

nothing calls this directly

Calls 1

TSHttpTxnCntlGetFunction · 0.85

Tested by

no test coverage detected