whaffman
dfc4bc7dd0
feat(devcontainer): add Dockerfile and devcontainer.json for C++ development setup
2025-09-23 16:09:53 +00:00
Quinten Mennen
c255878b2f
feat(log): add printContext method for improved context logging
2025-09-23 16:15:07 +02:00
Quinten Mennen
f119d98c70
fix(log): get rid of source_location
2025-09-23 15:37:32 +02:00
whaffman
c9855fd7e5
Refactor include directives: replace quotes with angle brackets for consistency
2025-09-22 23:04:51 +02:00
whaffman
3eb46dba13
Enhance code formatting and organization:
...
- Add tasks for code formatting and checking in VSCode
- Update .clang-format for consistent style
- Clean up includes and formatting in various files
2025-09-22 22:59:29 +02:00
whaffman
31014705b1
Refactor HttpRequest: replace hardcoded strings with constants for header parsing
2025-09-22 22:45:00 +02:00
whaffman
e200731306
HttpConstants header file with HTTP methods, versions, status codes, headers, MIME types, and protocol constants
2025-09-22 22:44:52 +02:00
whaffman
7c0ff82b08
Add HttpConstants header file with HTTP methods, versions, status codes, headers, MIME types, and protocol constants
2025-09-22 22:33:37 +02:00
whaffman
2924440e0d
Refactor HttpRequest::parseBuffer: extract parsing logic into separate methods for request line, headers, and body
2025-09-22 22:33:27 +02:00
whaffman
799cf250b7
Refactor Client class: replace std::cout with logging calls for read errors and client disconnections, and remove unused header parsing methods
2025-09-22 22:33:17 +02:00
whaffman
90e70f2e82
Added some appropiate nodiscard atributes
2025-09-22 22:32:54 +02:00
whaffman
5264139d49
Set stdout log level to Trace for improved logging detail
2025-09-22 21:49:47 +02:00
whaffman
3dc12fab9d
Implemented the recieving part of HttpRequest
...
and changed client to use HttpRequest
2025-09-22 21:49:38 +02:00
whaffman
6766bd8744
Fix formatting in Log class: adjust pointer declaration style for RESET_COLOR
2025-09-22 13:13:36 +02:00
whaffman
6b85be65b8
Refactor logging system: enhance Channel and FileChannel classes to use getter/setter for log level, improve log context formatting in StdoutChannel, and update main to test logging context
2025-09-22 13:13:29 +02:00
whaffman
6803524989
Refactor logging system: replace LogLevel with Log::Level across multiple files for improved consistency and clarity
2025-09-22 12:33:18 +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
72a39b4da8
plan of action on log
2025-09-21 22:48:17 +02:00
whaffman
c509666199
Enhance FileChannel constructor and logging setup: add openmode parameter to FileChannel and update setFileChannel method to support it
2025-09-21 21:54:03 +02:00
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