Simple header-only library for creating an API.
cd examples
make
- Curl
Basic example, this will just respond with a string that contains a simple message for different routes.
In one terminal start the http server
./curl/main
Then you can try to make curl requests to it
curl localhost:8080/
curl localhost:8080/another
curl localhost:8080/notexist
- HTML
Simple example that reads an html file from disk and sends it's contents as response.
In one terminal start the http server
./html/main
Then you can try to make curl requests to it or open it in browser
curl localhost:8080