If you want to return a streaming, synchronous response by writing to an 
OutputStream, you can make a web handler state the :body of the response as 
a fn, which will be called back with an OutputStream.  This is described at 
http://pedestal.io/reference/streaming.

That page goes on to say, "The function may run as long as it needs. This 
will occupy a thread, so consider using a go block."

The first sentence reassuringly emphasizes that the "fn" body option is for 
streaming a response.  But the implicit invitation to write to an 
OutputStream from a "go" construct seems strange.  Mightn't the writes 
block?

-- 
You received this message because you are subscribed to the Google Groups 
"pedestal-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pedestal-users/5ac4ab64-8a88-48f9-b1ae-a349c52d4b35n%40googlegroups.com.

Reply via email to