aleph 2024-09-23

I am working with an Aleph web server. My endpoint should return a stream (audio/mpeg). I have a process in my server that generates the audio as an InputStream (clojure commons). To convert one to the other, the only way I see is to manually loop with a buffer. Is that right? Is there no simpler way to turn an InputStream into something I can send as a stream in Aleph?

yea that ended up working thanks!

weren't aleph (ring) response bodies also allowed to be input streams? in that case you could just return your audio thing as the :body