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

Function ts_lua_inject_server_state_variables

plugins/lua/ts_lua_http.cc:339–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339static void
340ts_lua_inject_server_state_variables(lua_State *L)
341{
342 size_t i;
343
344 for (i = 0; i < sizeof(ts_lua_server_state_string) / sizeof(char *); i++) {
345 lua_pushinteger(L, (lua_Integer)i);
346 lua_setglobal(L, ts_lua_server_state_string[i]);
347 }
348}
349
350static int
351ts_lua_http_set_retstatus(lua_State *L)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected