rumlang / rum

Functional language, easily extensible and possible (Lua features with LISP dialect and functional) to be embarked on software Go!
https://www.rumlang.org/
MIT License
157 stars 13 forks source link

HTTP server on stdlib #143

Open avelino opened 3 years ago

avelino commented 3 years ago

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))