return 0;
}
+ if (0 == strcmp("handler", key)) {
+ const char *value = luaL_checkstring(L, 3);
+ r->handler = apr_pstrdup(r->pool, value);
+ return 0;
+ }
+
+ if (0 == strcmp("proxyreq", key)) {
+ int value = luaL_checkinteger(L, 3);
+ r->proxyreq = value;
+ return 0;
+ }
+
if (0 == strcmp("status", key)) {
int code = luaL_checkinteger(L, 3);
r->status = code;
lua_pushinteger(L, HTTP_MOVED_TEMPORARILY);
lua_setfield(L, -2, "HTTP_MOVED_TEMPORARILY");
+ lua_pushinteger(L, PROXYREQ_NONE);
+ lua_setfield(L, -2, "PROXYREQ_NONE");
+
+ lua_pushinteger(L, PROXYREQ_PROXY);
+ lua_setfield(L, -2, "PROXYREQ_PROXY");
+
+ lua_pushinteger(L, PROXYREQ_REVERSE);
+ lua_setfield(L, -2, "PROXYREQ_REVERSE");
+
+ lua_pushinteger(L, PROXYREQ_RESPONSE);
+ lua_setfield(L, -2, "PROXYREQ_RESPONSE");
+
/*
lua_pushinteger(L, HTTP_CONTINUE);
lua_setfield(L, -2, "HTTP_CONTINUE");