Created
December 17, 2014 19:01
-
-
Save ztellman/613629a2a32908d096d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[manifold.stream :as s]) | |
(defn streaming-response [ch] | |
{:status 200 | |
:headers {"content-type" "text/plain"} | |
:body (s/->stream ch)}) | |
I think this is it :-
(require '[manifold.stream :as s])
(defn streaming-response [ch]
{:status 200
:headers {"content-type" "text/plain"}
:body (s/->source ch)})
Yes, that was it. I tried it before but it wasn't working because of pebkac, so got myself in a twist. Sorry for the spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no longer a manifold.stream/->stream in recent manifold releases - can you tell me if there's an alternative?