http

is a collection of modules for building and parsing HTTP requests.

(load "git@github.com:carpentry-org/http@0.0.4")

(def txt "POST / HTTP/1.1\r
Host: https://carpentry.dev\r
User-Agent: carp\r
Accept: */*\r
\r
hi!")

(defn main []
  (let [x (Request.parse txt)]
    (match x
      (Result.Success r) (println* &r)