Webserv project architecture overview
The Webserv project is structured around four primary classes that manage the lifecycle of a web server:
- Service: The central orchestrator that links parsing, setup, and launch phases. It maintains the server list, client list, and the socket polling vector.
- Parser: Responsible for reading
.conffiles and extracting server block configurations to instantiate Server objects. - Server: Represents a single server configuration block (e.g.,
server { ... }) and stores its specific parameters. - Client: Created upon each new connection; stores the associated server, the client's socket, and the received request.