Is it safe to use input stream without closing like this? Or should I somehow close it after user downloads the file?
(let [response {:status 200
:headers {"Content-Type" (:content-type file)}
:body (-> (:content file)
io/input-stream)}]
response)
@petr.mensik Thatโs safe - input streams in the response body are closed for you
@weavejester Thanks ๐