Skip to content

Commit d4e4df9

Browse files
committed
add new features from 0.4.2 to readme
1 parent 2350834 commit d4e4df9

File tree

1 file changed

+43
-4
lines changed

1 file changed

+43
-4
lines changed

README.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
Core Features
88
=================
99

10-
The latest release is v0.4.2, more detail changes about it can be found from [Release History](http://nginx-clojure.github.io/downloads.html).
10+
The latest release is v0.4.2, more detail changes about it can be found from [Release History](downloads.html).
1111

1212
1. Compatible with [Ring](https://github.com/ring-clojure/ring/blob/master/SPEC) and obviously supports those Ring based frameworks, such as Compojure etc.
1313
1. Http Services by using Clojure / Java / Groovy to write simple handlers for http services.
1414
1. Nginx Access Handler by Clojure / Java / Groovy
1515
1. Nginx Header Filter by Clojure / Java / Groovy
16+
1. **_NEW_**: Support Sente, see [this PR](https://github.com/ptaoussanis/sente/pull/160)
17+
1. **_NEW_**: Support Per-message Compression Extensions (PMCEs) for WebSocket
1618
1. **_NEW_**: APIs for Embedding Nginx-Clojure into a Standard Clojure/Java/Groovy App
1719
1. **_NEW_**: Server Side Websocket
18-
1. **_NEW_**: A build-in Jersey container to support java standard RESTful web services (JAX-RS 2.0)
19-
1. **_NEW_**: Tomcat 8 embedding support (so servlet 3.1/jsp/sendfile/JSR-356 websocket work within nginx!)
20+
1. A build-in Jersey container to support java standard RESTful web services (JAX-RS 2.0)
21+
1. Tomcat 8 embedding support (so servlet 3.1/jsp/sendfile/JSR-356 websocket work within nginx!)
2022
1. Dynamic proxying by using Clojure / Java / Groovy to write a simple nginx rewrite handler to set var or return errors before proxy pass or content ring handler
2123
1. Non-blocking coroutine based socket which is Compatible with Java Socket API and works well with largely existing java library such as apache http client, mysql jdbc drivers.
2224
With this feature one java main thread can handle thousands of connections.
@@ -30,7 +32,44 @@ With this feature one java main thread can handle thousands of connections.
3032
1. One of benifits of [Nginx](http://nginx.org/) is worker processes are automatically restarted by a master process if they crash
3133
1. Utilizes lazy headers and direct memory operation between [Nginx](http://nginx.org/) and JVM to fast handle dynamic contents from Clojure or Java code.
3234
1. Utilizes [Nginx](http://nginx.org/) zero copy file sending mechanism to fast handle static contents controlled by Clojure or Java code.
33-
1. Supports Linux x64, Linux x86 32bit, Win32, Win64 and Mac OS X. Freebsd version can also be got from Freebsd ports
35+
1. Supports Linux x64, Linux x86 32bit, Win32, Win64 and Mac OS X. Freebsd version can also be got from Freebsd ports.
36+
37+
Jar Repository
38+
================
39+
40+
Nginx-Clojure has already been published to https://clojars.org/ whose maven repository is
41+
42+
```xml
43+
<repository>
44+
<id>clojars.org</id>
45+
<url>http://clojars.org/repo</url>
46+
</repository>
47+
```
48+
49+
After adding clojars repository, you can reference nginx-clojure 0.4.2 , e.g.
50+
51+
Leiningen (clojure, no need to add clojars repository which is a default repository for Leiningen)
52+
-----------------
53+
54+
```clojure
55+
[nginx-clojure "0.4.2"]
56+
```
57+
Gradle (groovy/java)
58+
-----------------
59+
60+
```
61+
compile "nginx-clojure:nginx-clojure:0.4.2"
62+
```
63+
Maven
64+
-----------------
65+
66+
```xml
67+
<dependency>
68+
<groupId>nginx-clojure</groupId>
69+
<artifactId>nginx-clojure</artifactId>
70+
<version>0.4.2</version>
71+
</dependency>
72+
```
3473

3574
More Documents
3675
=================

0 commit comments

Comments
 (0)