Skip to content

dcdjr/cpp-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ HTTP Server

A lightweight multithreaded HTTP/1.1 server written in C++17 using POSIX sockets.

Features

  • Raw TCP socket handling
  • HTTP/1.1 request parsing
  • Static file serving from static/
  • MIME type detection
  • Thread-per-connection concurrency
  • Directory traversal protection
  • Request timeout and size-limit handling
  • Structured HTTP error responses
  • Console request logging

Build and Run

make
make run

About

Multithreaded HTTP/1.1 server in C++ using POSIX sockets, static file serving, MIME detection, and defensive request handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors