Because it's simple to use 🙂
- Support
asynchttpserver
as default http server - Support
httpx
via-d:httpx
- Logging with
-d:debug
nimble install happyx
nimble install https://github.com/HapticX/happyx
import happyx
proc main =
var server = newServer()
server.routes:
"/":
req.answer("Hello, world!")
"/user{id:int}"
req.answer(fmt"Hello, user with ID {id}!")
server.start()
main()
nim c -r -d:ssl -d:debug main
nim c -r -d:ssl -d:debug -d:httpx main
You make us happy when sending PR or help us to find bugs and errors 🐛