wrap ap_rwrite as r:write(String) */
| 522 | |
| 523 | /* wrap ap_rwrite as r:write(String) */ |
| 524 | static 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) */ |
| 537 | static int req_add_output_filter(lua_State *L) |
nothing calls this directly
no test coverage detected