whaffman
58edbe86be
Refactor logging levels: change LOG_INFO to LOG_DEBUG in Client destructor and LOG_INFO to LOG_TRACE in ServerConfig for improved log granularity
2025-09-21 21:25:46 +02:00
whaffman
ebe67abf03
Add Todo to loglevel
2025-09-21 21:25:37 +02:00
whaffman
bac66d2a0b
Implement logging level support in Channel and its derived classes
...
- Added LogLevel parameter to Channel constructor and updated derived classes (FileChannel, StdoutChannel) to accept it.
- Modified log methods to respect the logging level, preventing lower priority logs from being processed.
- Updated Log class to set logging levels for stdout and file channels.
- Adjusted main function to initialize logging with specified levels.
2025-09-21 20:49:25 +02:00
whaffman
66e57fef59
Add header and implementation files for CgiHandler, ErrorHandler, FileHandler, HttpRequest, HttpResponse, and Router classes
2025-09-21 00:38:23 +02:00
whaffman
b7b10249dd
Fix parameter type in bind method: remove redundant 'const' from port parameter for consistency
2025-09-21 00:38:12 +02:00
whaffman
4f47c0c1ee
Refactor variable naming for consistency: update member variables in Client, ConfigManager, LocationConfig, ServerConfig, and Socket classes to use a consistent naming convention with trailing underscores.
2025-09-21 00:12:05 +02:00
whaffman
6e9725bb53
Enable parallel build for release target in Makefile for improved build performance
2025-09-21 00:11:56 +02:00
whaffman
f066f46021
Add TODO comment for refactoring LOG_LEVEL_MAP to a separate namespace or log class
2025-09-21 00:00:42 +02:00
whaffman
8e0ae154b6
Refactor LogLevel handling: replace switch statements with constexpr mapping for improved maintainability and readability
2025-09-20 23:46:35 +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
94cd396ac1
Implement file logging functionality with FileChannel class and update Log class to support file output
2025-09-20 22:55:14 +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
whaffman
a2a2e56678
Fix include directive for Channel.hpp in Log.hpp
2025-09-20 15:19:55 +02:00
whaffman
c8b2217406
Add HttpRequest, HttpResponse, Router, CgiHandler, ConfigValidator, Logger, and MimeTypeHandler classes to class diagram
2025-09-20 15:19:47 +02:00
whaffman
0dcc584827
macrootje er over heen voor functie naame en lijn nummer..
2025-09-18 21:19:27 +02:00
Quinten Mennen
0d3fd346ba
Implement logging framework with Channel and StdoutChannel classes
2025-09-18 19:08:57 +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
8bc624a080
Update class diagram: refine Server, Client, and ServerConfig classes, and add LocationConfig details
2025-09-18 17:33:33 +02:00
Quinten Mennen
3f90d8b7ed
server: switch from edge trigger to level trigger
2025-09-18 17:33:29 +02:00
Quinten Mennen
c246bde4be
client: allow buffer to be read in multiple epoll events
2025-09-18 17:33:06 +02:00
Quinten Mennen
afc936a696
Update .clang-tidy configuration: add readability-identifier-length check and fix formatting
2025-09-18 15:07:23 +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
fc5e59689f
Add class diagram for Server, Socket, Client, HTTP_Request, and HTTP_Response
2025-09-18 12:57:06 +02:00
whaffman
708a4ee25f
Implement Socket class: add constructors, destructor, and methods for socket operations including listen, bind, accept, recv, send, and setNonBlocking.
2025-09-18 12:57:00 +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
Quinten Mennen
0a26702457
Update server configuration and improve utility functions: change host to 127.0.0.1, modify root path, enhance trimSemi function, and adjust directive parsing logic.
2025-09-16 15:35:04 +02:00
Quinten Mennen
e8f1c9a929
Update Makefile: modify default target to only include release and add run target
2025-09-16 15:26:16 +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
whaffman
3ee0a607a1
Enhance configuration management: add getter methods for server configuration details, improve location handling, and update main to display server information
2025-09-14 22:55:20 +02:00
whaffman
0ae78577e7
Refactor ConfigManager and LocationConfig: comment out unused methods, improve parsing logic, and clean up includes
2025-09-14 21:19:22 +02:00
whaffman
cb88b9dc13
first config parse try
2025-09-14 21:15:32 +02:00
whaffman
48953b1c62
create ConfigManager source files
2025-09-12 11:58:56 +02:00
github-actions[bot]
73576f26f2
Apply clang-format fixes
2025-09-11 10:37:51 +00:00
whaffman
f7bc063227
Refactor project structure: remove MyModule, implement ConfigManager, and enhance CMake/Makefile for multiple build types
2025-09-11 12:36:31 +02:00
whaffman
0d4bbe53b0
Refactor MyModule to use static method and update output format; add CMakeLists.txt for project build configuration
2025-09-10 22:31:27 +02:00
github-actions[bot]
eb1b68f698
Apply clang-format fixes
2025-09-10 16:13:25 +00:00
whaffman
f2a9a6128c
test action
2025-09-10 18:12:46 +02:00
whaffman
07c205173e
Refactor clang-format workflow to remove container dependency and install tools directly
2025-09-10 18:11:59 +02:00
whaffman
80d3299b51
Update clang-format workflow to use pre-built container and remove installation step
2025-09-10 18:08:56 +02:00
Quinten
28928c64ff
Change clang-format style from Google to Microsoft
2025-09-10 18:05:24 +02:00
Quinten
7e10e5aad8
Update clang-format style to Google
2025-09-10 18:04:36 +02:00
Quinten
6130c6ddc4
updated clang-format
2025-09-10 18:02:36 +02:00
github-actions[bot]
ced176fc7d
Apply clang-format fixes
2025-09-10 15:58:28 +00:00
Quinten
6989521a31
add github action for formatting
2025-09-10 17:56:07 +02:00
Quinten
66a0590d77
compile flags
2025-09-10 17:51:06 +02:00
whaffman
ac39854276
Add Makefile and initial implementation of MyModule with main function
2025-09-10 17:41:04 +02:00
Quinten
fa58455218
data flow
2025-09-10 17:21:04 +02:00