|
8 | 8 | This module is under active development and is production ready. |
9 | 9 |
|
10 | 10 | Version |
11 | | - This document describes ngx_lua v0.5.0rc3 |
12 | | - (<https://github.com/chaoslawful/lua-nginx-module/tags>) released on 6 |
| 11 | + This document describes ngx_lua v0.5.0rc5 |
| 12 | + (<https://github.com/chaoslawful/lua-nginx-module/tags>) released on 7 |
13 | 13 | February 2012. |
14 | 14 |
|
15 | 15 | Synopsis |
@@ -964,6 +964,14 @@ Nginx API for Lua |
964 | 964 | Note that only two of these constants are utilized by the Nginx API for |
965 | 965 | Lua (i.e., ngx.exit accepts "NGX_OK" and "NGX_ERROR" as input). |
966 | 966 |
|
| 967 | + ngx.null |
| 968 | + |
| 969 | + The "ngx.null" constant is a "NULL" light userdata which is usually used |
| 970 | + to represent nil values in Lua tables and etc. It is identical with the |
| 971 | + lua-cjson (<http://www.kyne.com.au/~mark/software/lua-cjson.php>) |
| 972 | + library's "cjson.null" constant. This constant was first introduced in |
| 973 | + the "v0.5.0rc5" release. |
| 974 | + |
967 | 975 | HTTP method constants |
968 | 976 | context: *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, |
969 | 977 | header_filter_by_lua** |
@@ -4041,15 +4049,23 @@ TODO |
4041 | 4049 |
|
4042 | 4050 | * implement the "ngx.re.split" method. |
4043 | 4051 |
|
| 4052 | + * use "ngx_hash_t" to optimize the built-in header look-up process for |
| 4053 | + ngx.req.set_header, ngx.header.HEADER, and etc. |
| 4054 | + |
| 4055 | + * fix HTTP 1.0 support: we should by default close the current HTTP |
| 4056 | + 1.0 connection right away if no "Content-Length" response header is |
| 4057 | + set. the current automatic full buffering bahvior is way too |
| 4058 | + expensive. |
| 4059 | + |
4044 | 4060 | * add configure options for different strategies of handling the |
4045 | 4061 | cosocket connection exceeding in the pools. |
4046 | 4062 |
|
4047 | 4063 | * add directives to run Lua codes when nginx stops/reloads. |
4048 | 4064 |
|
4049 | 4065 | * deal with TCP 3-second delay problem under great connection harness. |
4050 | 4066 |
|
4051 | | - * add support for multi-value arguments to [[#ngx.req.set_uri_args]] |
4052 | | - if its "args" argument is a Lua table. |
| 4067 | + * add support for multi-value arguments to ngx.req.set_uri_args if its |
| 4068 | + "args" argument is a Lua table. |
4053 | 4069 |
|
4054 | 4070 | * add APIs to access cookies as key/value pairs. |
4055 | 4071 |
|
@@ -4445,6 +4461,9 @@ See Also |
4445 | 4461 | (<http://github.com/agentzh/lua-resty-memcached>) library based on |
4446 | 4462 | ngx_lua cosocket |
4447 | 4463 |
|
| 4464 | + * lua-resty-redis (<http://github.com/agentzh/lua-resty-redis>) |
| 4465 | + library based on ngx_lua cosocket |
| 4466 | + |
4448 | 4467 | * Routing requests to different MySQL queries based on URI arguments |
4449 | 4468 | (<http://openresty.org/#RoutingMySQLQueriesBasedOnURIArgs>) |
4450 | 4469 |
|
|
0 commit comments