- Multithreaded: can handle multiple connectsion concurrenlty
- Graceful shutdown: Ctrl-C will gracefull shutdown server and threapool
- Responses: Responds to http get requests
This project is simple HTTP server built in C++. I created this project to expand my knowledge of sockets, multithreading, and HTTP communication. The server listens on port '8080' and supports a few get requests.
make
./cpp-http-serverThe server will start and listen on http://localhost:8080
Press Ctrl+C to stop the server.
curl http://localhost:8080/
curl http://localhost:8080/echo/hello
curl http://localhost:8080/user-agentThese sources provided helpul information for implementation of various parts of the project
https://www.binarytides.com/multiple-socket-connections-fdset-select-linux/
https://eli.thegreenplace.net/2017/concurrent-servers-part-2-threads/