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

Function ap_lua_check_request_rec

modules/lua/lua_request.c:118–124  ·  view source on GitHub ↗

* Verify that the thing at index is a request_rec wrapping * userdata thingamajig and return it if it is. if it is not * lua will enter its error handling routine. */

Source from the content-addressed store, hash-verified

116 * lua will enter its error handling routine.
117 */
118static request_rec *ap_lua_check_request_rec(lua_State *L, int index)
119{
120 request_rec *r;
121 luaL_checkudata(L, index, "Apache2.Request");
122 r = (request_rec *) lua_unboxpointer(L, index);
123 return r;
124}
125
126/* ------------------ request methods -------------------- */
127/* helper callback for req_parseargs */

Callers 15

req_headers_in_tableFunction · 0.70
req_headers_out_tableFunction · 0.70
req_notes_tableFunction · 0.70
req_subprocess_env_tableFunction · 0.70
req_parseargsFunction · 0.70
req_parsebodyFunction · 0.70
lua_ap_requestbodyFunction · 0.70
req_putsFunction · 0.70
req_writeFunction · 0.70
req_add_output_filterFunction · 0.70
req_construct_urlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected