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

Function req_write

modules/lua/lua_request.c:524–534  ·  view source on GitHub ↗

wrap ap_rwrite as r:write(String) */

Source from the content-addressed store, hash-verified

522
523/* wrap ap_rwrite as r:write(String) */
524static int req_write(lua_State *L)
525{
526 request_rec *r = ap_lua_check_request_rec(L, 1);
527 size_t n;
528 int rv;
529 const char *buf = luaL_checklstring(L, 2, &n);
530
531 rv = ap_rwrite((void *) buf, n, r);
532 lua_pushinteger(L, rv);
533 return 1;
534}
535
536/* r:add_output_filter(name) */
537static int req_add_output_filter(lua_State *L)

Callers

nothing calls this directly

Calls 2

ap_rwriteFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected