Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

HTTP server on stdlib #143

Open
avelino opened this issue Feb 28, 2021 · 0 comments
Open

HTTP server on stdlib #143

avelino opened this issue Feb 28, 2021 · 0 comments
Labels

Comments

@avelino
Copy link
Member

avelino commented Feb 28, 2021

Example of how I think - we are willing to discuss the best way:

(package "main"
  (import http)
  (def home-handle(w, r)
    (fprintf w "home starting server!"))
  (http.handle-func "/" home-handle)
  (http.listen-serve ":8080" nil))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant