A simple HTTP server built using only C++
- Listens for HTTP connections on a configurable port
- Handles basic HTTP GET requests (returns "Hello, World!" for
/) - Minimal, clean, and easy to understand
- Good starting point to learn how HTTP works at a low level
├── src/
│ ├── main.cpp
│ ├── http_server.cpp
│ └── http_server.h
- Clone the repo (or copy these files into your Codespace).
- Build:
mkdir build && cd build cmake .. make
- Run:
./cpp-http-server
- Test:
Open your browser to http://localhost:9000 and you should see "Hello, World!".