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

Function req_parseargs

modules/lua/lua_request.c:353–362  ·  view source on GitHub ↗

r:parseargs() returning a lua table */

Source from the content-addressed store, hash-verified

351}
352/* r:parseargs() returning a lua table */
353static int req_parseargs(lua_State *L)
354{
355 apr_table_t *form_table;
356 request_rec *r = ap_lua_check_request_rec(L, 1);
357 lua_newtable(L);
358 lua_newtable(L); /* [table, table] */
359 ap_args_to_table(r, &form_table);
360 apr_table_do(req_aprtable2luatable_cb, L, form_table, NULL);
361 return 2; /* [table<string, string>, table<string, array<string>>] */
362}
363
364/* ap_lua_binstrstr: Binary strstr function for uploaded data with NULL bytes */
365static char* ap_lua_binstrstr (const char * haystack, size_t hsize, const char* needle, size_t nsize)

Callers

nothing calls this directly

Calls 2

ap_args_to_tableFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected