function | previously cljs.repl.browser/read-headers | Edit |
(read-headers rdr)
(defn read-headers [rdr]
(loop [next-line (.readLine rdr) header-lines []]
(if (= "" next-line)
header-lines ;; we're done reading headers
(recur
(.readLine rdr)
(conj header-lines next-line)))))