|
|
2 år sedan | |
|---|---|---|
| .. | ||
| Makefile | 2 år sedan | |
| README.md | 2 år sedan | |
| appweb.conf | 2 år sedan | |
| index.html | 2 år sedan | |
| server | 2 år sedan | |
| server.c | 2 år sedan | |
| start.me | 2 år sedan | |
This sample shows how to create actions. i.e. Simple bindings from URIs to C functions. The sample contains a main program which initializes the server and registers the required actions.
make
make run
The server listens on port 8080. Browse to:
http://localhost:8080/action/myaction
http://localhost:8080/action/myaction?name=Peter&address=Park+Lane
The MyAction will parse the form/query parameters and echo their values back.