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

Function lua_ap_get_server_name_for_url

modules/lua/lua_request.c:1830–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828}
1829
1830static int lua_ap_get_server_name_for_url(lua_State *L)
1831{
1832 const char *servername;
1833 request_rec *r;
1834 luaL_checktype(L, 1, LUA_TUSERDATA);
1835 r = ap_lua_check_request_rec(L, 1);
1836 servername = ap_get_server_name_for_url(r);
1837 lua_pushstring(L, servername);
1838 return 1;
1839}
1840
1841/* ap_state_query (int query_code) item starts a new field */
1842static int lua_ap_state_query(lua_State *L)

Callers

nothing calls this directly

Calls 2

ap_lua_check_request_recFunction · 0.70

Tested by

no test coverage detected