Permalink
Browse files

Client certificates and OutputStreams for 1.1 SPEC

  • Loading branch information...
1 parent f132606 commit 5f399117051df0757ac838580a75697f2a0aab7c @weavejester weavejester committed Dec 28, 2011
Showing with 9 additions and 2 deletions.
  1. +9 −2 SPEC
View
11 SPEC
@@ -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

Please sign in to comment.