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

Function ts_lua_http_transaction_count

plugins/lua/ts_lua_http.cc:846–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846static int
847ts_lua_http_transaction_count(lua_State *L)
848{
849 ts_lua_http_ctx *http_ctx;
850
851 GET_HTTP_CONTEXT(http_ctx, L);
852
853 TSHttpSsn ssn = TSHttpTxnSsnGet(http_ctx->txnp);
854 if (ssn) {
855 int n = TSHttpSsnTransactionCount(ssn);
856 lua_pushnumber(L, n);
857 } else {
858 lua_pushnil(L);
859 }
860
861 return 1;
862}
863
864static int
865ts_lua_http_server_transaction_count(lua_State *L)

Callers

nothing calls this directly

Calls 2

TSHttpTxnSsnGetFunction · 0.85

Tested by

no test coverage detected