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

Function ts_lua_http_get_server_state

plugins/lua/ts_lua_http.cc:894–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894static int
895ts_lua_http_get_server_state(lua_State *L)
896{
897 ts_lua_http_ctx *http_ctx;
898
899 GET_HTTP_CONTEXT(http_ctx, L);
900
901 TSServerState ss = TSHttpTxnServerStateGet(http_ctx->txnp);
902 lua_pushnumber(L, ss);
903
904 return 1;
905}
906
907static int
908ts_lua_http_get_remap_from_url(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSHttpTxnServerStateGetFunction · 0.85

Tested by

no test coverage detected