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

Function lua_ap_set_document_root

modules/lua/lua_request.c:1470–1481  ·  view source on GitHub ↗

* lua_ap_set_document_root; r:set_document_root(path) - sets the current doc * root for the request */

Source from the content-addressed store, hash-verified

1468 * root for the request
1469 */
1470static int lua_ap_set_document_root(lua_State *L)
1471{
1472 request_rec *r;
1473 const char *root;
1474
1475 luaL_checktype(L, 1, LUA_TUSERDATA);
1476 luaL_checktype(L, 2, LUA_TSTRING);
1477 r = ap_lua_check_request_rec(L, 1);
1478 root = lua_tostring(L, 2);
1479 ap_set_document_root(r, root);
1480 return 0;
1481}
1482
1483/*
1484 * lua_ap_getdir; r:get_direntries(directory) - Gets all entries of a

Callers

nothing calls this directly

Calls 2

ap_set_document_rootFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected