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

Function lua_ap_send_interim_response

modules/lua/lua_request.c:1776–1786  ·  view source on GitHub ↗

* ap_send_interim_response (request_rec *r, int send_headers) * Send an interim (HTTP 1xx) response immediately. * @param r The request * @param send_headers Whether to send&clear headers in r->headers_out */

Source from the content-addressed store, hash-verified

1774 * @param send_headers Whether to send&clear headers in r->headers_out
1775 */
1776static int lua_ap_send_interim_response(lua_State *L)
1777{
1778 request_rec *r;
1779 int send_headers = 0;
1780 luaL_checktype(L, 1, LUA_TUSERDATA);
1781 r = ap_lua_check_request_rec(L, 1);
1782 if (lua_isboolean(L, 2))
1783 send_headers = lua_toboolean(L, 2);
1784 ap_send_interim_response(r, send_headers);
1785 return 0;
1786}
1787
1788
1789/**

Callers

nothing calls this directly

Calls 2

ap_send_interim_responseFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected