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

Function lua_ap_set_context_info

modules/lua/lua_request.c:1635–1648  ·  view source on GitHub ↗

* ap_set_context_info: Set context_prefix and context_document_root. * @param r The request * @param prefix the URI prefix, without trailing slash * @param document_root the corresponding directory on disk, without trailing * slash * @note If one of prefix of document_root is NULL, the corrsponding * property will not be changed. */

Source from the content-addressed store, hash-verified

1633 * property will not be changed.
1634 */
1635static int lua_ap_set_context_info(lua_State *L)
1636{
1637 request_rec *r;
1638 const char *prefix;
1639 const char *document_root;
1640 luaL_checktype(L, 1, LUA_TUSERDATA);
1641 r = ap_lua_check_request_rec(L, 1);
1642 luaL_checktype(L, 2, LUA_TSTRING);
1643 prefix = lua_tostring(L, 2);
1644 luaL_checktype(L, 3, LUA_TSTRING);
1645 document_root = lua_tostring(L, 3);
1646 ap_set_context_info(r, prefix, document_root);
1647 return 0;
1648}
1649
1650
1651/**

Callers

nothing calls this directly

Calls 2

ap_set_context_infoFunction · 0.85
ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected