Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 404 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 404 Bytes

halo2

halo2 is an http server for janet

Install

jpm install https://github.com/joy-framework/halo2

Example

(import halo2)

(defn handler [request]
  {:status 200 :body "halo2" :headers {"Content-Type" "text/plain"}})

(halo2/server handler 8080 "localhost")

Test that out with curl:

curl localhost:8080
# => halo2