Skip to content

Commit 22310ea

Browse files
committed
prepare for v0.3.0
1 parent 4c69786 commit 22310ea

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

HISTORY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Downloads & Release History
44
1. [Binaries of Releases](http://sourceforge.net/projects/nginx-clojure/files/)
55
1. [Sources of Releases](https://github.com/nginx-clojure/nginx-clojure/releases)
66

7+
## 0.3.0 (2014-12-11)
8+
9+
1. Discard: Directive `clojure`, `clojure_code` are no longer supported, use `handle_type`, `handle_name`, `handle_code` instead.
10+
1. Discard: Now `handler_***` can not be used to declare a nginx worker initialization handler, use `jvm_init_handler_*** instead.
11+
1. New Feature: Supports writing nginx access handler by java/clojure/groovy (issue #53)
12+
1. New Feature: Supports writing nginx header filter by java/clojure/groovy (issue #55)
13+
1. New Feature: Add new directive `max_balanced_tcp_connections` to make nginx auto set worker_connections.
14+
1. Enhancement: For Java We can use r.setVariable, r.getVariable now if r is an instance of NginxJavaRequest.
15+
1. Deprecated Directives: handler_type, handler_name, handler_code are deprecated and maybe will be removed in the next version, add new directive content_handler_type, content_handler_code, content_handler_code
16+
1. New Directives: rewrite_handler_type, access_handler_type, header_filter_type, body_filter_type
17+
1. New Feature: Supports nested locations (issue #56)
18+
1. Bug Fix : uppercase letters in nginx variable name can not work (issue #54)
19+
1. Bug Fix: The first registered handler will not work if there 's a asynchronous reading of request body (issue 51)
20+
1. Enhancement: `handlers_lazy_init` can be used to make handler initialized lazily or eagerly
21+
722
## 0.2.7 (2014-11-11)
823

924
1. New Feature: Compiling option for disabling all functions silently when JVM_PATH not configured. (issue #47)

test/java/nginx/clojure/java/AccessHandlerTestSet4NginxJavaRingHandler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public Object[] invoke(Map<String, Object> request) {
3333

3434
}
3535

36+
/**
37+
* This is an example of HTTP basic Authentication.
38+
* It will require visitor to input a user name (xfeep) and password (hello!)
39+
* otherwise it will return 401 Unauthorized or BAD USER & PASSWORD
40+
*/
3641
public static class BasicAuthHandler implements NginxJavaRingHandler {
3742

3843
@Override

test/nginx-working-dir/conf/nginx-coroutine.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ http {
189189
# error_log /dev/null crit;
190190

191191
location / {
192-
handlers_lazy_init off;
192+
handlers_lazy_init on;
193193
handler_type 'clojure';
194194
handler_code ' (let [text (slurp "/home/who/git/clojure-web-server-benchmarks/servers/index.html")]
195195
(fn[req]

test/nginx-working-dir/conf/nginx-plain.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ http {
194194
# error_log /dev/null crit;
195195

196196
location / {
197-
handlers_lazy_init off;
197+
handlers_lazy_init on;
198198
handler_type 'clojure';
199-
handler_code ' (let [text (slurp "/home/who/git/clojure-web-server-benchmarks/servers/index.html")]
199+
handler_code ' (let [text (slurp "/home/who/git/clojure-web-server-benchmarks/servers/index.html")]
200200
(fn[req]
201201
{:status 200 :headers {"content-type" "text/html"}
202202
:body text})

test/nginx-working-dir/conf/nginx-threadpool.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ http {
190190
# error_log /dev/null crit;
191191

192192
location / {
193-
handlers_lazy_init off;
193+
handlers_lazy_init on;
194194
handler_type 'clojure';
195-
handler_code ' (let [text (slurp "/home/who/git/clojure-web-server-benchmarks/servers/index.html")]
195+
handler_code ' (let [text (slurp "/home/who/git/clojure-web-server-benchmarks/servers/index.html")]
196196
(fn[req]
197197
{:status 200 :headers {"content-type" "text/html"}
198198
:body text})

0 commit comments

Comments
 (0)