Skip to content

MKorolyova/HttpMultiThreadsServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

C++ HTTP Web Server

A lightweight educational HTTP server written in C++, implementing its own routing system, controllers, DTOs, models, and static file handling. The project is structured similarly to a minimal MVC framework and supports multithreading via a ThreadPool.

Features

  • Custom HTTP server written from scratch
  • Routing via controllers
  • Automatic controller registration
  • DTO system for request/response handling
  • Static file serving (HTML, CSS, images)
  • ThreadPool for concurrent request processing
  • Python client for testing (optional)

Getting Started

Run the Project

Open a terminal in the project root directory and run:

Build Project

g++ -std=c++17 -pthread main.cpp Controllers/*.cpp DTO/*.cpp Models/*.cpp ThreadPool.cpp Task.cpp -o http_server

Run Project

./http_server

The server will run on http://localhost:8888

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors