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

Function ts_lua_http_is_aborted

plugins/lua/ts_lua_http.cc:815–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815static int
816ts_lua_http_is_aborted(lua_State *L)
817{
818 ts_lua_http_ctx *http_ctx;
819
820 GET_HTTP_CONTEXT(http_ctx, L);
821 bool client_abort = false;
822 if (TSHttpTxnAborted(http_ctx->txnp, &client_abort)) {
823 lua_pushnumber(L, 1);
824 } else {
825 lua_pushnumber(L, 0);
826 }
827
828 return 1;
829}
830
831static int
832ts_lua_http_skip_remapping_set(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSHttpTxnAbortedFunction · 0.85

Tested by

no test coverage detected