| 844 | } |
| 845 | |
| 846 | static int |
| 847 | ts_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 | |
| 864 | static int |
| 865 | ts_lua_http_server_transaction_count(lua_State *L) |
nothing calls this directly
no test coverage detected