Skip to content

dev-jatin-mehra/cpp-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal C++ HTTP Server

A simple HTTP server built using only C++

Features

  • 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

Folder Structure

├── src/
│   ├── main.cpp
│   ├── http_server.cpp
│   └── http_server.h

Run

  1. Clone the repo (or copy these files into your Codespace).
  2. Build:
    mkdir build && cd build
    cmake ..
    make
  3. Run:
    ./cpp-http-server
  4. Test:
    Open your browser to http://localhost:9000 and you should see "Hello, World!".

About

A simple http server built via C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors