Skip to content

Commit c73f874

Browse files
committed
updated docs to reflect recent changes.
1 parent 14e079c commit c73f874

File tree

3 files changed

+45
-8
lines changed

3 files changed

+45
-8
lines changed

README

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Status
88
This module is under active development and is production ready.
99

1010
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
1313
February 2012.
1414

1515
Synopsis
@@ -964,6 +964,14 @@ Nginx API for Lua
964964
Note that only two of these constants are utilized by the Nginx API for
965965
Lua (i.e., ngx.exit accepts "NGX_OK" and "NGX_ERROR" as input).
966966

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+
967975
HTTP method constants
968976
context: *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*,
969977
header_filter_by_lua**
@@ -4041,15 +4049,23 @@ TODO
40414049

40424050
* implement the "ngx.re.split" method.
40434051

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+
40444060
* add configure options for different strategies of handling the
40454061
cosocket connection exceeding in the pools.
40464062

40474063
* add directives to run Lua codes when nginx stops/reloads.
40484064

40494065
* deal with TCP 3-second delay problem under great connection harness.
40504066

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.
40534069

40544070
* add APIs to access cookies as key/value pairs.
40554071

@@ -4445,6 +4461,9 @@ See Also
44454461
(<http://github.com/agentzh/lua-resty-memcached>) library based on
44464462
ngx_lua cosocket
44474463

4464+
* lua-resty-redis (<http://github.com/agentzh/lua-resty-redis>)
4465+
library based on ngx_lua cosocket
4466+
44484467
* Routing requests to different MySQL queries based on URI arguments
44494468
(<http://openresty.org/#RoutingMySQLQueriesBasedOnURIArgs>)
44504469

README.markdown

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This module is under active development and is production ready.
1313
Version
1414
=======
1515

16-
This document describes ngx_lua [v0.5.0rc3](https://github.com/chaoslawful/lua-nginx-module/tags) released on 6 February 2012.
16+
This document describes ngx_lua [v0.5.0rc5](https://github.com/chaoslawful/lua-nginx-module/tags) released on 7 February 2012.
1717

1818
Synopsis
1919
========
@@ -904,6 +904,12 @@ Core constants
904904

905905
Note that only two of these constants are utilized by the [Nginx API for Lua](http://wiki.nginx.org/HttpLuaModule#Nginx_API_for_Lua) (i.e., [ngx.exit](http://wiki.nginx.org/HttpLuaModule#ngx.exit) accepts `NGX_OK` and `NGX_ERROR` as input).
906906

907+
908+
ngx.null
909+
910+
911+
The `ngx.null` constant is a `NULL` light userdata which is usually used to represent nil values in Lua tables and etc. It is identical with the [lua-cjson](http://www.kyne.com.au/~mark/software/lua-cjson.php) library's `cjson.null` constant. This constant was first introduced in the `v0.5.0rc5` release.
912+
907913
HTTP method constants
908914
---------------------
909915
**context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua**
@@ -3680,10 +3686,12 @@ Short Term
36803686
* make [tcpsock:send](http://wiki.nginx.org/HttpLuaModule#tcpsock:send) method accept (nested) Lua tables of strings as its first argument to save string concatenation operations on the Lua user land.
36813687
* implement [LuaSocket UDP API](http://w3.impa.br/~diego/software/luasocket/udp.html) in our cosocket API.
36823688
* implement the `ngx.re.split` method.
3689+
* use `ngx_hash_t` to optimize the built-in header look-up process for [ngx.req.set_header](http://wiki.nginx.org/HttpLuaModule#ngx.req.set_header), [ngx.header.HEADER](http://wiki.nginx.org/HttpLuaModule#ngx.header.HEADER), and etc.
3690+
* fix HTTP 1.0 support: we should by default close the current HTTP 1.0 connection right away if no `Content-Length` response header is set. the current automatic full buffering bahvior is way too expensive.
36833691
* add configure options for different strategies of handling the cosocket connection exceeding in the pools.
36843692
* add directives to run Lua codes when nginx stops/reloads.
36853693
* deal with TCP 3-second delay problem under great connection harness.
3686-
* add support for multi-value arguments to [[#ngx.req.set_uri_args]] if its `args` argument is a Lua table.
3694+
* add support for multi-value arguments to [ngx.req.set_uri_args](http://wiki.nginx.org/HttpLuaModule#ngx.req.set_uri_args) if its `args` argument is a Lua table.
36873695
* add APIs to access cookies as key/value pairs.
36883696
* add `ignore_resp_headers`, `ignore_resp_body`, and `ignore_resp` options to [ngx.location.capture](http://wiki.nginx.org/HttpLuaModule#ngx.location.capture) and [ngx.location.capture_multi](http://wiki.nginx.org/HttpLuaModule#ngx.location.capture_multi) methods, to allow micro performance tuning on the user side.
36893697

@@ -3857,6 +3865,7 @@ See Also
38573865
========
38583866

38593867
* [lua-resty-memcached](http://github.com/agentzh/lua-resty-memcached) library based on ngx_lua cosocket
3868+
* [lua-resty-redis](http://github.com/agentzh/lua-resty-redis) library based on ngx_lua cosocket
38603869
* [Routing requests to different MySQL queries based on URI arguments](http://openresty.org/#RoutingMySQLQueriesBasedOnURIArgs)
38613870
* [Dynamic Routing Based on Redis and Lua](http://openresty.org/#DynamicRoutingBasedOnRedis)
38623871
* [Using LuaRocks with ngx_lua](http://openresty.org/#UsingLuaRocks)

doc/HttpLuaModule.wiki

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This module is under active development and is production ready.
1010

1111
= Version =
1212

13-
This document describes ngx_lua [https://github.com/chaoslawful/lua-nginx-module/tags v0.5.0rc3] released on 6 February 2012.
13+
This document describes ngx_lua [https://github.com/chaoslawful/lua-nginx-module/tags v0.5.0rc5] released on 7 February 2012.
1414

1515
= Synopsis =
1616
<geshi lang="nginx">
@@ -870,6 +870,12 @@ Setting <code>ngx.var.Foo</code> to a <code>nil</code> value will unset the <cod
870870
871871
Note that only two of these constants are utilized by the [[#Nginx API for Lua|Nginx API for Lua]] (i.e., [[#ngx.exit|ngx.exit]] accepts <code>NGX_OK</code> and <code>NGX_ERROR</code> as input).
872872
873+
<geshi lang="lua">
874+
ngx.null
875+
</geshi>
876+
877+
The <code>ngx.null</code> constant is a <code>NULL</code> light userdata which is usually used to represent nil values in Lua tables and etc. It is identical with the [http://www.kyne.com.au/~mark/software/lua-cjson.php lua-cjson] library's <code>cjson.null</code> constant. This constant was first introduced in the <code>v0.5.0rc5</code> release.
878+
873879
== HTTP method constants ==
874880
'''context:''' ''set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*''
875881
@@ -3556,10 +3562,12 @@ Please report bugs or submit patches by:
35563562
* make [[#tcpsock:send|tcpsock:send]] method accept (nested) Lua tables of strings as its first argument to save string concatenation operations on the Lua user land.
35573563
* implement [http://w3.impa.br/~diego/software/luasocket/udp.html LuaSocket UDP API] in our cosocket API.
35583564
* implement the <code>ngx.re.split</code> method.
3565+
* use <code>ngx_hash_t</code> to optimize the built-in header look-up process for [[#ngx.req.set_header|ngx.req.set_header]], [[#ngx.header.HEADER|ngx.header.HEADER]], and etc.
3566+
* fix HTTP 1.0 support: we should by default close the current HTTP 1.0 connection right away if no <code>Content-Length</code> response header is set. the current automatic full buffering bahvior is way too expensive.
35593567
* add configure options for different strategies of handling the cosocket connection exceeding in the pools.
35603568
* add directives to run Lua codes when nginx stops/reloads.
35613569
* deal with TCP 3-second delay problem under great connection harness.
3562-
* add support for multi-value arguments to [[#ngx.req.set_uri_args]] if its <code>args</code> argument is a Lua table.
3570+
* add support for multi-value arguments to [[#ngx.req.set_uri_args|ngx.req.set_uri_args]] if its <code>args</code> argument is a Lua table.
35633571
* add APIs to access cookies as key/value pairs.
35643572
* add <code>ignore_resp_headers</code>, <code>ignore_resp_body</code>, and <code>ignore_resp</code> options to [[#ngx.location.capture|ngx.location.capture]] and [[#ngx.location.capture_multi|ngx.location.capture_multi]] methods, to allow micro performance tuning on the user side.
35653573
@@ -3725,6 +3733,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
37253733
= See Also =
37263734
37273735
* [http://github.com/agentzh/lua-resty-memcached lua-resty-memcached] library based on ngx_lua cosocket
3736+
* [http://github.com/agentzh/lua-resty-redis lua-resty-redis] library based on ngx_lua cosocket
37283737
* [http://openresty.org/#RoutingMySQLQueriesBasedOnURIArgs Routing requests to different MySQL queries based on URI arguments]
37293738
* [http://openresty.org/#DynamicRoutingBasedOnRedis Dynamic Routing Based on Redis and Lua]
37303739
* [http://openresty.org/#UsingLuaRocks Using LuaRocks with ngx_lua]

0 commit comments

Comments
 (0)