Go to file
2025-09-23 16:09:53 +00:00
.devcontainer feat(devcontainer): add Dockerfile and devcontainer.json for C++ development setup 2025-09-23 16:09:53 +00:00
.vscode Enhance code formatting and organization: 2025-09-22 22:59:29 +02:00
config Refactor server configuration and implementation: update listen ports in default.conf, enhance Server class with connection handling, and improve socket management in Server.cpp. 2025-09-16 17:08:10 +02:00
docs Add HttpRequest, HttpResponse, Router, CgiHandler, ConfigValidator, Logger, and MimeTypeHandler classes to class diagram 2025-09-20 15:19:47 +02:00
webserv feat(log): add printContext method for improved context logging 2025-09-23 16:15:07 +02:00
.clang-format Enhance code formatting and organization: 2025-09-22 22:59:29 +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 Enhance code style and organization: update .clang-format for include sorting, enable parallel compilation in CMake, and clean up includes across multiple files for improved readability and consistency. 2025-09-20 23:21:23 +02:00
CMakeLists.txt Enhance code style and organization: update .clang-format for include sorting, enable parallel compilation in CMake, and clean up includes across multiple files for improved readability and consistency. 2025-09-20 23:21:23 +02:00
compile_flags.txt compile flags 2025-09-10 17:51:06 +02:00
Makefile Enable parallel build for release target in Makefile for improved build performance 2025-09-21 00:11:56 +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

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]