This announcement is a few days late, but Ring 1.1.0 is released and
ready for use.
The biggest change is the move from Jetty 6 to Jetty 7 for the default
adapter, and Ring now supports client SSL certificates via the
:ssl-client-cert request map key.
The Hiccup dependency in the ring-devel package has been updated to
1.0.0, which may require some minor namespace changes if your
application uses Hiccup. For instance, if you use
"hiccup.form-helpers", that namespace is now called "hiccup.form".
Cookie expiry times can now be set using JodaTime objects, such as
from the clj-time library. This allows you to write things like:
(-> (response "Hello World")
(set-cookie "foo" "bar" {:expires (-> 1 year from-now)}))
This will also work with session expiry times.
OutputStreams are supported via the
ring.util.io/piped-input-stream function:
(response
(piped-input-stream
(fn [out] (spit out "Hello World"))))
And there are several additions to the ring.util.codec and
ring.util.response namespaces, including form-encode and form-decode
for parsing form-urlencoded parameters without the wrap-params
middleware.
I'll be adding some additional examples and explanations to the Ring
wiki over the next few weeks.
- James