expose apr_table as (r/o) lua table */
| 317 | |
| 318 | /* expose apr_table as (r/o) lua table */ |
| 319 | static int req_aprtable2luatable(lua_State *L, apr_table_t *t) |
| 320 | { |
| 321 | lua_newtable(L); |
| 322 | lua_newtable(L); /* [table, table] */ |
| 323 | apr_table_do(req_aprtable2luatable_cb, L, t, NULL); |
| 324 | return 2; /* [table<string, string>, table<string, array<string>>] */ |
| 325 | } |
| 326 | |
| 327 | static int req_headers_in_table(lua_State *L) |
| 328 | { |
no outgoing calls
no test coverage detected