Commit Graph

35 Commits

Author SHA1 Message Date
Quinten
f3bdf28eed refactor: implement socket structure and server refactor 2025-10-14 18:38:57 +02:00
Quinten
970ab847fc refactor(server): refactor event loop 2025-10-14 15:25:04 +02:00
whaffman
4614a2d382 moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
whaffman
010ee3e8b6 moving some files and fixing includes 2025-10-06 15:16:53 +02:00
whaffman
bcd33dacd7 feat: serve static pages 2025-10-01 17:50:10 +02:00
Quinten
927b9549c2 feat: implement router request handling and error management 2025-09-30 20:03:05 +02:00
Quinten
e1acf5b515 refactor: replace fdToConfig_ with listener_fds_ for improved socket management 2025-09-30 18:15:08 +02:00
Quinten
9320d83378 feat: add custom 400 error page and update configuration for error handling 2025-09-30 18:02:13 +02:00
Quinten
1c634ddc02 remove client when it disconnects 2025-09-30 17:18:09 +02:00
Quinten
be8c5a80b4 feat(http): implement http response class 2025-09-30 15:35:20 +02:00
whaffman
610cc69fc1 feat: add missing unordered_map include for improved functionality 2025-09-30 12:32:16 +02:00
whaffman
d360728b18 feat: enhance logging by changing info logs to debug level for detailed tracing 2025-09-30 11:26:05 +02:00
whaffman
a3e9699eb9 feat: reorder include statements to ensure corresponding headers are placed first 2025-09-30 11:17:43 +02:00
whaffman
ab2db513c0 iwyu 2025-09-30 10:54:50 +02:00
whaffman
787432ff0c refactor: simplify Client and HttpRequest constructors, add status code management 2025-09-29 16:09:40 +02:00
whaffman
e5ad795917 fix: apply IWYU suggestions and format 2025-09-26 18:08:52 +02:00
whaffman
143498315b fix: apply IWYU suggestions 2025-09-26 18:08:32 +02:00
whaffman
c841142e79 Refactor configuration handling and directive parsing
- Introduced AConfig class to handle common configuration functionalities.
- Added GlobalConfig class to manage multiple ServerConfig instances.
- Updated ServerConfig to utilize the new AConfig base class.
- Refactored directive parsing logic to improve clarity and maintainability.
- Enhanced utility functions for removing comments and empty lines from configuration blocks.
- Updated directive classes to use consistent naming for value retrieval methods.
- Improved logging for better traceability during configuration parsing.
- Removed unused includes and cleaned up code for better readability.
2025-09-26 18:06:37 +02:00
whaffman
17b69afd2c feat(directives): implement DirectiveValue class and IntStringDirective for enhanced directive handling and use std::variant instead of any 2025-09-25 21:57:02 +02:00
Quinten
1e80839864 refactor(ServerConfig): update directive parsing and improve server socket binding 2025-09-25 17:51:37 +02:00
whaffman
b145a6eef2 refactor: update includes to use cstdint and cstddef for consistency 2025-09-24 22:34:12 +02:00
whaffman
ba831957d4 clang-format 2025-09-24 12:04:43 +02:00
whaffman
901f766599 ran iwyu 2025-09-24 12:03:40 +02:00
whaffman
c9855fd7e5 Refactor include directives: replace quotes with angle brackets for consistency 2025-09-22 23:04:51 +02:00
whaffman
358b48e407 Refactor logging: replace LOG macros with Log class methods for improved clarity and consistency 2025-09-22 12:00:53 +02:00
whaffman
df97596321 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
whaffman
6262cda801 Refactor logging: replace std::cout with LOG macros across multiple files for consistent logging and improved readability 2025-09-20 16:23:43 +02:00
Quinten Mennen
792cda4b52 client: add NOLINT comments for array usage and buffer handling
server: mark handleRequest as const and add NOLINT for array index
2025-09-18 17:45:42 +02:00
Quinten Mennen
ce815d18c6 Remove unused server configuration output and clean up event loop placeholder 2025-09-18 17:41:55 +02:00
Quinten Mennen
3f90d8b7ed server: switch from edge trigger to level trigger 2025-09-18 17:33:29 +02:00
Quinten Mennen
db8b078c27 Refactor Client and Server classes to use unique_ptr for socket management, enhance request handling, and improve connection lifecycle management 2025-09-18 15:07:19 +02:00
whaffman
29d6431143 moved CLient class to own dir 2025-09-18 12:56:49 +02:00
whaffman
8e40f538cf Implement Client and Server classes: add Client class for handling client requests and responses, and enhance Server class with connection management and event loop functionality. 2025-09-17 17:19:10 +02:00
Quinten Mennen
a2db0659c6 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
whaffman
94653db136 Implement server initialization: add Server class with constructor to initialize host and port from ConfigManager 2025-09-16 15:05:35 +02:00