Apache HTTPD
Classes | Macros | Typedefs | Functions
lua_vmprep.h File Reference
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "httpd.h"
#include "apr_thread_rwlock.h"
#include "apr_strings.h"
#include "apr_tables.h"
#include "apr_hash.h"
#include "apr_buckets.h"
#include "apr_file_info.h"
#include "apr_time.h"
#include "apr_pools.h"
#include "apr_reslist.h"

Go to the source code of this file.

Classes

struct  ap_lua_vm_spec
 
struct  ap_lua_mapped_handler_spec
 
struct  ap_lua_filter_handler_spec
 
struct  ap_lua_finfo
 
struct  ap_lua_server_spec
 

Macros

#define AP_LUA_SCOPE_UNSET   0
 
#define AP_LUA_SCOPE_ONCE   1
 
#define AP_LUA_SCOPE_REQUEST   2
 
#define AP_LUA_SCOPE_CONN   3
 
#define AP_LUA_SCOPE_THREAD   4
 
#define AP_LUA_SCOPE_SERVER   5
 
#define AP_LUA_CACHE_UNSET   0
 
#define AP_LUA_CACHE_NEVER   1
 
#define AP_LUA_CACHE_STAT   2
 
#define AP_LUA_CACHE_FOREVER   3
 
#define AP_LUA_FILTER_INPUT   1
 
#define AP_LUA_FILTER_OUTPUT   2
 

Typedefs

typedef void(* ap_lua_state_open_callback) (lua_State *L, apr_pool_t *p, void *ctx)
 

Functions

void ap_lua_load_apache2_lmodule (lua_State *L)
 
lua_Stateap_lua_get_lua_state (apr_pool_t *lifecycle_pool, ap_lua_vm_spec *spec, request_rec *r)
 

Macro Definition Documentation

◆ AP_LUA_CACHE_FOREVER

#define AP_LUA_CACHE_FOREVER   3

Definition at line 48 of file lua_vmprep.h.

◆ AP_LUA_CACHE_NEVER

#define AP_LUA_CACHE_NEVER   1

Definition at line 46 of file lua_vmprep.h.

◆ AP_LUA_CACHE_STAT

#define AP_LUA_CACHE_STAT   2

Definition at line 47 of file lua_vmprep.h.

◆ AP_LUA_CACHE_UNSET

#define AP_LUA_CACHE_UNSET   0

Definition at line 45 of file lua_vmprep.h.

◆ AP_LUA_FILTER_INPUT

#define AP_LUA_FILTER_INPUT   1

Definition at line 50 of file lua_vmprep.h.

◆ AP_LUA_FILTER_OUTPUT

#define AP_LUA_FILTER_OUTPUT   2

Definition at line 51 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_CONN

#define AP_LUA_SCOPE_CONN   3

Definition at line 41 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_ONCE

#define AP_LUA_SCOPE_ONCE   1

Definition at line 39 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_REQUEST

#define AP_LUA_SCOPE_REQUEST   2

Definition at line 40 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_SERVER

#define AP_LUA_SCOPE_SERVER   5

Definition at line 43 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_THREAD

#define AP_LUA_SCOPE_THREAD   4

Definition at line 42 of file lua_vmprep.h.

◆ AP_LUA_SCOPE_UNSET

#define AP_LUA_SCOPE_UNSET   0

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 38 of file lua_vmprep.h.

Typedef Documentation

◆ ap_lua_state_open_callback

typedef void(* ap_lua_state_open_callback) (lua_State *L, apr_pool_t *p, void *ctx)

Definition at line 53 of file lua_vmprep.h.

Function Documentation

◆ ap_lua_get_lua_state()

lua_State * ap_lua_get_lua_state ( apr_pool_t lifecycle_pool,
ap_lua_vm_spec spec,
request_rec r 
)

Function used to create a lua_State instance bound into the web server in the appropriate scope.

< Modification Time

< Size of the file

Definition at line 436 of file lua_vmprep.c.

◆ ap_lua_load_apache2_lmodule()

void ap_lua_load_apache2_lmodule ( lua_State L)

Fake out addition of the "apache2" module

< Module has handled this stage.

< Module declines to handle

< Module has served the response completely * - it's safe to die() with no more output

< No proxy

< Standard proxy

< Reverse proxy

< Origin response

< Origin response

Definition at line 145 of file lua_vmprep.c.