|
|
@@ -1,4 +1,4 @@ |
|
|
-=== Ring Spec (1.0)
|
|
|
+=== Ring Spec (1.1-SNAPSHOT)
|
|
|
Ring is defined in terms of handlers, middleware, adapters, requests maps, and
|
|
|
response maps, each of which are described below.
|
|
|
|
|
|
@@ -76,6 +76,10 @@ corresponding values: |
|
|
(Optional, String)
|
|
|
The name of the character encoding used in the request body, if known.
|
|
|
|
|
|
+:ssl-client-cert
|
|
|
+ (Optional, X509Certificate)
|
|
|
+ The SSL client certificate, if supplied.
|
|
|
+
|
|
|
:headers
|
|
|
(Required, IPersistentMap)
|
|
|
A Clojure map of downcased header name Strings to corresponding header value
|
|
|
@@ -101,7 +105,7 @@ A response map is a Clojure map containing at least the following keys and corre |
|
|
sent for each such String value.
|
|
|
|
|
|
:body
|
|
|
- (Optional, {String, ISeq, File, InputStream})
|
|
|
+ (Optional, {String, ISeq, File, InputStream, Fn})
|
|
|
A representation of the response body, if a response body is appropriate for
|
|
|
the response's status code. The respond body is handled according to its type:
|
|
|
String:
|
|
|
@@ -114,3 +118,6 @@ A response map is a Clojure map containing at least the following keys and corre |
|
|
InputStream:
|
|
|
Contents are consumed from the stream and sent to the client. When the
|
|
|
stream is exhausted, it is .close'd.
|
|
|
+ Fn:
|
|
|
+ The OutputStream of the response is passed to the specified function as
|
|
|
+ its only argument.
|
0 comments on commit
5f39911