Go to file
2025-10-19 13:54:19 +02:00
.devcontainer
.vscode
config error response 2025-10-16 14:52:25 +02:00
docs
htdocs feat: cgi headers: enhance CGI handling with output parsing and buffer management 2025-10-19 13:54:19 +02:00
logs
scripts
tests
webserv feat: cgi headers: enhance CGI handling with output parsing and buffer management 2025-10-19 13:54:19 +02:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt
compile_flags.txt
Makefile

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]