Go to file
2025-10-16 00:39:16 +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 feat(config): add new server configuration for site-3 and implement CGI support 2025-10-15 17:03:49 +02:00
docs moving docs, log files and iwyu map 2025-10-10 07:56:49 +02:00
htdocs fix: handle epollhup properly 2025-10-15 20:06:57 +02:00
logs moving docs, log files and iwyu map 2025-10-10 07:56:49 +02:00
scripts moving docs, log files and iwyu map 2025-10-10 07:56:49 +02:00
tests refactor: implement socket structure and server refactor 2025-10-14 18:38:57 +02:00
webserv more no except and const 2025-10-16 00:38:55 +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 probably useless chore: update clang-tidy checks to include noexcept-related rules 2025-10-16 00:39:16 +02:00
.gitignore test coverage 2025-10-07 18:22:36 +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

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]