Go to file
2025-10-09 23:13:48 +02:00
.devcontainer refactor(HttpHeaders): add logging for header operations and clean up includes 2025-09-24 22:37:44 +02:00
.vscode feat: enhance C++ development settings in VSCode configuration 2025-10-09 22:22:07 +02:00
config moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
docs feat: add initial TODO list for project tasks 2025-10-09 18:01:02 +02:00
htdocs moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
scripts moved scripts to script folder 2025-10-09 23:13:48 +02:00
tests moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
webserv moved scripts to script folder 2025-10-09 23:13:48 +02:00
.clang-format fix: add missing newline and ensure binary operators are placed at the beginning of the line 2025-10-09 16:26:00 +02:00
.clang-tidy Update .clang-tidy configuration: add readability-identifier-length check and fix formatting 2025-09-18 15:07:23 +02:00
.gitignore test coverage 2025-10-07 18:22:36 +02:00
.iwyu.imp feat: serve static pages 2025-10-01 17:50:10 +02:00
CMakeLists.txt add -Wpedantic and some friends 2025-10-09 21:16:30 +02:00
compile_flags.txt compile flags 2025-09-10 17:51:06 +02:00
Makefile moved scripts to script folder 2025-10-09 23:13:48 +02:00
Makefile.old Refactor project structure: remove MyModule, implement ConfigManager, and enhance CMake/Makefile for multiple build types 2025-09-11 12:36:31 +02:00
test_log.log claude added more tests. tnx claud 2025-10-07 18:11:09 +02:00
TESTING_SETUP.md feat: implement comprehensive unit testing framework with Google Test integration 2025-09-29 16:09:22 +02:00

webserv

Date Flow Overview

src/
 ├─ main.cpp              # starts server
 ├─ Server.cpp/.hpp       # listens & manages event loop
 ├─ Connection.cpp/.hpp   # represents a single client
 ├─ RequestParser.cpp/.hpp
 ├─ Router.cpp/.hpp
 ├─ Response.cpp/.hpp
 ├─ CGIHandler.cpp/.hpp
 ├─ Config.cpp/.hpp       # parses config file
 └─ Utils.cpp/.hpp
[Client TCP packet]
       │
       ▼
┌───────────────┐
│ Event Loop    │  (poll/select/epoll)
└──────┬────────┘
       │
       ▼
┌───────────────┐
│ RequestParser │  (builds Request struct)
└──────┬────────┘
       │
       ▼
┌───────────────┐
│ Router        │  (selects location, checks methods)
└──────┬────────┘
       │
       ▼
┌───────────────┐
│ Handler       │  (static file, CGI, error)
└──────┬────────┘
       │
       ▼
┌───────────────┐
│ ResponseBuilder│ (status line + headers + body)
└──────┬────────┘
       │
       ▼
[Send response back to client]