Commit Graph

18 Commits

Author SHA1 Message Date
whaffman
ba831957d4 clang-format 2025-09-24 12:04:43 +02:00
whaffman
901f766599 ran iwyu 2025-09-24 12:03:40 +02:00
Quinten Mennen
7270ee1812 feat(request): add parse error state 2025-09-24 11:52:31 +02:00
Quinten Mennen
e32b963689 fix(headers): remove unused log include 2025-09-24 11:22:41 +02:00
Quinten Mennen
e43bf72cd6 feat(headers): getContentType and getHost 2025-09-24 11:22:21 +02:00
Quinten Mennen
e921290d8f format(request) 2025-09-24 11:20:26 +02:00
Quinten Mennen
21b19b248c fix(headers): retrieval also case-insensitive 2025-09-24 11:20:15 +02:00
Quinten Mennen
5485a5a839 fix(request): check header size 2025-09-24 11:12:03 +02:00
Quinten Mennen
ff5221c2d5 fix(headers): make headers case-insensitive 2025-09-24 11:11:49 +02:00
Quinten Mennen
221cc710a8 feat(http): add headers class and allow for chunked data 2025-09-23 21:00:26 +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
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
90e70f2e82 Added some appropiate nodiscard atributes 2025-09-22 22:32:54 +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
66e57fef59 Add header and implementation files for CgiHandler, ErrorHandler, FileHandler, HttpRequest, HttpResponse, and Router classes 2025-09-21 00:38:23 +02:00