|
Apache HTTPD
|
#include "mod_lua.h"#include "lua_apr.h"#include "lua_dbd.h"#include "lua_passwd.h"#include "scoreboard.h"#include "util_md5.h"#include "util_script.h"#include "util_varbuf.h"#include "apr_date.h"#include "apr_pools.h"#include "apr_thread_mutex.h"#include "apr_tables.h"#include "util_cookies.h"#include "apr_want.h"Go to the source code of this file.
Macros | |
| #define | APR_WANT_BYTEFUNC |
| #define | POST_MAX_VARS 500 |
| #define | MODLUA_MAX_REG_MATCH 25 |
| #define | APLUA_REQ_TRACE(lev) |
Typedefs | |
| typedef char *(* | req_field_string_f) (request_rec *r) |
| typedef int(* | req_field_int_f) (request_rec *r) |
| typedef req_table_t *(* | req_field_apr_table_f) (request_rec *r) |
Variables | |
| apr_global_mutex_t * | lua_ivm_mutex |
| apr_shm_t * | lua_ivm_shm |
| static int *const | aplog_module_index = &( lua_module.module_index) |
| static const struct luaL_Reg | request_methods [] |
| static const struct luaL_Reg | connection_methods [] |
| static const struct luaL_Reg | server_methods [] |
Definition at line 2527 of file lua_request.c.
| #define APR_WANT_BYTEFUNC |
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 32 of file lua_request.c.
| #define MODLUA_MAX_REG_MATCH 25 |
Definition at line 42 of file lua_request.c.
| #define POST_MAX_VARS 500 |
Definition at line 39 of file lua_request.c.
| typedef req_table_t *(* req_field_apr_table_f) (request_rec *r) |
Definition at line 47 of file lua_request.c.
| typedef int(* req_field_int_f) (request_rec *r) |
Definition at line 46 of file lua_request.c.
| typedef char *(* req_field_string_f) (request_rec *r) |
Definition at line 45 of file lua_request.c.
|
static |
Definition at line 365 of file lua_request.c.
|
static |
Verify that the thing at index is a request_rec wrapping userdata thingamajig and return it if it is. if it is not lua will enter its error handling routine.
Definition at line 118 of file lua_request.c.
| void ap_lua_load_request_lmodule | ( | lua_State * | L, |
| apr_pool_t * | p | ||
| ) |
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 2715 of file lua_request.c.
Definition at line 3003 of file lua_request.c.
| void ap_lua_push_request | ( | lua_State * | L, |
| request_rec * | r | ||
| ) |
Definition at line 3038 of file lua_request.c.
| void ap_lua_push_server | ( | lua_State * | L, |
| server_rec * | s | ||
| ) |
Definition at line 3025 of file lua_request.c.
| void ap_lua_rstack_dump | ( | lua_State * | L, |
| request_rec * | r, | ||
| const char * | msg | ||
| ) |
make a userdata out of a C pointer, and vice versa instead of using lightuserdata
Definition at line 50 of file lua_request.c.
|
static |
Definition at line 2167 of file lua_request.c.
Definition at line 1398 of file lua_request.c.
|
static |
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride Limit
< *.conf anywhere and .htaccess when AllowOverride Options
< *.conf anywhere and .htaccess when AllowOverride FileInfo
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride AuthConfig
< *.conf anywhere and .htaccess when AllowOverride Indexes
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride Limit
< *.conf anywhere and .htaccess when AllowOverride Options
< *.conf anywhere and .htaccess when AllowOverride FileInfo
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride AuthConfig
< *.conf anywhere and .htaccess when AllowOverride Indexes
< *.conf is not available anywhere in this override
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride Limit
< *.conf anywhere and .htaccess when AllowOverride Options
< *.conf anywhere and .htaccess when AllowOverride FileInfo
< *.conf inside <Directory> or <Location> and .htaccess when AllowOverride AuthConfig
< *.conf anywhere and .htaccess when AllowOverride Indexes
Definition at line 781 of file lua_request.c.
|
static |
Definition at line 2685 of file lua_request.c.
|
static |
Definition at line 800 of file lua_request.c.
Definition at line 1386 of file lua_request.c.
ap_custom_response (request_rec *r, int status, const char *string) Install a custom response handler for a given status
| r | The current request |
| status | The status for which the custom response should be used |
| string | The custom response. This can be a static string, a file or a URL |
Definition at line 1793 of file lua_request.c.
Definition at line 934 of file lua_request.c.
ap_escape_logitem (apr_pool_t *p, const char *str) Escape a string for logging
| p | The pool to allocate from |
| str | The string to escape |
Definition at line 1681 of file lua_request.c.
ap_exists_config_define (const char *name) Check for a definition from the server command line
| name | The define to check for |
Definition at line 1815 of file lua_request.c.
Definition at line 1127 of file lua_request.c.
Definition at line 2647 of file lua_request.c.
Definition at line 2638 of file lua_request.c.
|
static |
Definition at line 2692 of file lua_request.c.
Definition at line 1826 of file lua_request.c.
< ->name in proper case
Definition at line 1483 of file lua_request.c.
|
static |
Definition at line 812 of file lua_request.c.
|
static |
Definition at line 807 of file lua_request.c.
Definition at line 1577 of file lua_request.c.
ap_make_etag (request_rec *r, int force_weak) Construct an entity tag from the resource information. If it's a real file, build in some of the file characteristics.
| r | The current request |
| force_weak | Force the entity tag to be weak - it could be modified again in as short an interval. |
Definition at line 1750 of file lua_request.c.
Definition at line 1422 of file lua_request.c.
Definition at line 1113 of file lua_request.c.
|
static |
Definition at line 774 of file lua_request.c.
ap_os_escape_path (apr_pool_t *p, const char *path, int partial) convert an OS path to a URL in an OS dependant way.
| p | The pool to allocate from |
| path | The path to convert |
| partial | if set, assume that the path will be appended to something with a '/' in it (and thus does not prefix "./") |
Definition at line 1656 of file lua_request.c.
Definition at line 1169 of file lua_request.c.
< Module has handled this stage.
< Create the file if not there
<
< Open the file for writing
< use OS's default permissions
< Module has handled this stage.
Definition at line 456 of file lua_request.c.
Definition at line 762 of file lua_request.c.
Definition at line 1450 of file lua_request.c.
Definition at line 1235 of file lua_request.c.
Definition at line 1288 of file lua_request.c.
ap_send_interim_response (request_rec *r, int send_headers) Send an interim (HTTP 1xx) response immediately.
| r | The request |
| send_headers | Whether to send&clear headers in r->headers_out |
Definition at line 1772 of file lua_request.c.
< type, mtime, ctime, atime, size
< Open the file for reading
<
< use OS's default permissions
<
Definition at line 822 of file lua_request.c.
Definition at line 1593 of file lua_request.c.
ap_set_context_info: Set context_prefix and context_document_root.
| r | The request |
| prefix | the URI prefix, without trailing slash |
| document_root | the corresponding directory on disk, without trailing slash |
Definition at line 1631 of file lua_request.c.
Definition at line 1466 of file lua_request.c.
ap_set_keepalive (request_rec *r) Set the keepalive status for this request
| r | The current request |
Definition at line 1730 of file lua_request.c.
|
static |
Definition at line 817 of file lua_request.c.
|
static |
Definition at line 795 of file lua_request.c.
< type, mtime, ctime, atime, size
< Module has handled this stage.
< Modification Time
< Access Time
< Creation or inode-changed time
< Size of the file
< Type
< all protections
Definition at line 1523 of file lua_request.c.
Definition at line 1838 of file lua_request.c.
ap_strcmp_match (const char str, const char *expected) Determine if a string matches a pattern containing the wildcards '?' or ''
| str | The string to check |
| expected | The pattern to match against |
| ignoreCase | Whether to ignore case when matching |
Definition at line 1703 of file lua_request.c.
Definition at line 912 of file lua_request.c.
Definition at line 1854 of file lua_request.c.
Definition at line 887 of file lua_request.c.
Definition at line 862 of file lua_request.c.
Definition at line 1096 of file lua_request.c.
Definition at line 995 of file lua_request.c.
Definition at line 951 of file lua_request.c.
< use OS's default permissions
<
Definition at line 1040 of file lua_request.c.
< use OS's default permissions
<
Definition at line 1060 of file lua_request.c.
Definition at line 1079 of file lua_request.c.
Definition at line 969 of file lua_request.c.
Definition at line 1021 of file lua_request.c.
Definition at line 2049 of file lua_request.c.
Definition at line 1984 of file lua_request.c.
Definition at line 2009 of file lua_request.c.
|
static |
< Module has handled this stage.
< Module has served the response completely * - it's safe to die() with no more output
Definition at line 233 of file lua_request.c.
Definition at line 2063 of file lua_request.c.
Definition at line 2455 of file lua_request.c.
Definition at line 2187 of file lua_request.c.
Definition at line 2251 of file lua_request.c.
Definition at line 2475 of file lua_request.c.
Definition at line 2272 of file lua_request.c.
|
static |
Definition at line 2231 of file lua_request.c.
Definition at line 2403 of file lua_request.c.
|
static |
< Module has handled this stage.
< Module has served the response completely * - it's safe to die() with no more output
Definition at line 280 of file lua_request.c.
|
static |
Definition at line 2707 of file lua_request.c.
|
static |
Definition at line 2609 of file lua_request.c.
Definition at line 537 of file lua_request.c.
Definition at line 1955 of file lua_request.c.
|
static |
Definition at line 652 of file lua_request.c.
|
static |
Definition at line 757 of file lua_request.c.
|
static |
Definition at line 319 of file lua_request.c.
Definition at line 128 of file lua_request.c.
|
static |
Definition at line 177 of file lua_request.c.
|
static |
Definition at line 622 of file lua_request.c.
|
static |
Definition at line 702 of file lua_request.c.
|
static |
Definition at line 632 of file lua_request.c.
Definition at line 548 of file lua_request.c.
|
static |
Definition at line 657 of file lua_request.c.
|
static |
Definition at line 662 of file lua_request.c.
|
static |
Definition at line 589 of file lua_request.c.
|
static |
Definition at line 584 of file lua_request.c.
Definition at line 1959 of file lua_request.c.
Definition at line 1979 of file lua_request.c.
Definition at line 1865 of file lua_request.c.
|
static |
Definition at line 579 of file lua_request.c.
Definition at line 1951 of file lua_request.c.
Definition at line 1963 of file lua_request.c.
|
static |
Definition at line 725 of file lua_request.c.
Definition at line 337 of file lua_request.c.
Definition at line 557 of file lua_request.c.
|
static |
Definition at line 637 of file lua_request.c.
|
static |
Definition at line 603 of file lua_request.c.
|
static |
Definition at line 707 of file lua_request.c.
Definition at line 327 of file lua_request.c.
|
static |
Definition at line 716 of file lua_request.c.
Definition at line 332 of file lua_request.c.
|
static |
Definition at line 617 of file lua_request.c.
Definition at line 1975 of file lua_request.c.
Definition at line 1934 of file lua_request.c.
|
static |
Definition at line 682 of file lua_request.c.
|
static |
Definition at line 599 of file lua_request.c.
Definition at line 2542 of file lua_request.c.
|
static |
Definition at line 743 of file lua_request.c.
Definition at line 342 of file lua_request.c.
Definition at line 1971 of file lua_request.c.
Definition at line 353 of file lua_request.c.
< Module has handled this stage.
< Module has handled this stage.
Definition at line 380 of file lua_request.c.
|
static |
Definition at line 627 of file lua_request.c.
|
static |
Definition at line 672 of file lua_request.c.
|
static |
< No proxy
< Standard proxy
< Reverse proxy
< Origin response
Definition at line 607 of file lua_request.c.
Definition at line 510 of file lua_request.c.
|
static |
Definition at line 667 of file lua_request.c.
|
static |
Definition at line 692 of file lua_request.c.
|
static |
Definition at line 752 of file lua_request.c.
Definition at line 566 of file lua_request.c.
|
static |
Definition at line 697 of file lua_request.c.
|
static |
Definition at line 734 of file lua_request.c.
Definition at line 347 of file lua_request.c.
|
static |
Definition at line 677 of file lua_request.c.
Definition at line 2532 of file lua_request.c.
Definition at line 2533 of file lua_request.c.
Definition at line 2534 of file lua_request.c.
Definition at line 2535 of file lua_request.c.
Definition at line 2536 of file lua_request.c.
Definition at line 2537 of file lua_request.c.
Definition at line 2538 of file lua_request.c.
Definition at line 2539 of file lua_request.c.
|
static |
Definition at line 647 of file lua_request.c.
|
static |
Definition at line 594 of file lua_request.c.
|
static |
Definition at line 642 of file lua_request.c.
|
static |
Definition at line 687 of file lua_request.c.
Definition at line 1967 of file lua_request.c.
Definition at line 524 of file lua_request.c.
Definition at line 38 of file lua_request.c.
Definition at line 2681 of file lua_request.c.
|
extern |
Definition at line 2673 of file lua_request.c.