Start of Red onion binding (https://github.com/davidmoreno/onion)
-
STATE: just some test Red/System scripts for now (with static and dynamic response, request parameter parse and websockets!)
-
you are welcome to develop it further
TODO:
- port it to red
- add code to retrive GET / POST data
- add session support
- add websocket support
Compile:
./red -c basic.reds
Run:
./basic
See:
visit http://localhost:8080 and http://localhost:8080/test
Compile: ./red .c websocket.reds
./websocket
visit http://localhost:8080/ws