MCPcopy Create free account
hub / github.com/apache/httpd / lua_ap_set_keepalive

Function lua_ap_set_keepalive

modules/lua/lua_request.c:1734–1743  ·  view source on GitHub ↗

* ap_set_keepalive (request_rec *r) * Set the keepalive status for this request * @param r The current request * @return 1 if keepalive can be set, 0 otherwise */

Source from the content-addressed store, hash-verified

1732 * @return 1 if keepalive can be set, 0 otherwise
1733 */
1734static int lua_ap_set_keepalive(lua_State *L)
1735{
1736 int returnValue;
1737 request_rec *r;
1738 luaL_checktype(L, 1, LUA_TUSERDATA);
1739 r = ap_lua_check_request_rec(L, 1);
1740 returnValue = ap_set_keepalive(r);
1741 lua_pushboolean(L, returnValue);
1742 return 1;
1743}
1744
1745/**
1746 * ap_make_etag (request_rec *r, int force_weak)

Callers

nothing calls this directly

Calls 2

ap_set_keepaliveFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected