Skip to content

Commit e209b2e

Browse files
committed
Add more info on StreamableResponseBody to SPEC
1 parent a27b98f commit e209b2e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SPEC.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,19 @@ A representation of the response body that must satisfy the
162162
(write-body-to-stream [body response output-stream]))
163163
```
164164

165+
The `response` argument is the full Ring response map, and the
166+
`output-stream` argument is a `java.io.OutputStream` instance.
167+
168+
The `ring.core.protocols` namespace provides default implementations for
169+
the following types:
170+
171+
* `byte[]`
172+
* `String`
173+
* `clojure.lang.ISeq`
174+
* `java.io.InputStream`
175+
* `java.io.File`
176+
* `nil`
177+
165178
#### :headers
166179

167180
A Clojure map of header name strings to either a string or a vector of

0 commit comments

Comments
 (0)