Go to file
2025-09-10 17:51:06 +02:00
docs data flow 2025-09-10 17:21:04 +02:00
webserv Add Makefile and initial implementation of MyModule with main function 2025-09-10 17:41:04 +02:00
.clang-format clang format & clang tidy 2025-09-10 17:12:05 +02:00
.clang-tidy clang format & clang tidy 2025-09-10 17:12:05 +02:00
.gitignore Add Makefile and initial implementation of MyModule with main function 2025-09-10 17:41:04 +02:00
compile_flags.txt compile flags 2025-09-10 17:51:06 +02:00
Makefile Add Makefile and initial implementation of MyModule with main function 2025-09-10 17:41:04 +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]