Commit Graph

70 Commits

Author SHA1 Message Date
Quinten
f146f41bb8 fix: simplify logging for partial requests and update response handling 2025-11-11 16:28:35 +01:00
Quinten
5d4265eab3 works? 2025-11-06 19:10:30 +01:00
whaffman
53eea8246b fixes 2025-11-04 10:22:52 +01:00
whaffman
d8fb7d0846 feat: enhance request validation with method checks and error handling 2025-10-30 23:04:27 +01:00
Quinten
1b123d84e3 feat: (better) http validation 2025-10-30 17:20:59 +01:00
Quinten
e34205bd39 formatting 2025-10-29 15:51:32 +01:00
Quinten
2d9bf7a37f feat: add remote addr to cgi env 2025-10-29 14:29:59 +01:00
whaffman
3714004bad fix: enhance URI path handling 2025-10-29 12:11:20 +01:00
whaffman
9e773e43fd feat: implement redirect handling and update configuration 2025-10-28 22:02:11 +01:00
Quinten
12106441f1 format 2025-10-27 09:32:15 +01:00
Quinten
9358370044 extend validation logic 2025-10-27 09:25:26 +01:00
Quinten
4cf3eac4d1 feat: request validation 2025-10-26 19:18:11 +01:00
whaffman
d98fb98c52 iwyu 2025-10-26 13:43:42 +01:00
Quinten
176864f35c fix(client): remove sockets on client destruct 2025-10-22 15:36:26 +02:00
whaffman
656abd24e7 feat(CgiHandler, TimerSocket): enhance error handling and add read/write methods 2025-10-22 15:18:15 +02:00
Quinten
e7e913a32d timeout, but please refactor yes thankyou 2025-10-21 22:17:17 +02:00
whaffman
7eba0b38a2 Merge remote-tracking branch 'origin/feature/socket-refactor' into willem2 2025-10-21 19:03:32 +02:00
Quinten
cfb88745bb refactor(Client, Server, ASocket): update socket handling and state management 2025-10-21 16:55:11 +02:00
whaffman
bf36dd74d8 Cgi stderr 2025-10-21 15:37:45 +02:00
whaffman
7951478edf minimal fix for segfault 2025-10-21 15:11:39 +02:00
whaffman
60405f03d5 feat: implement CGI process management with wait and kill functionality 2025-10-17 16:28:04 +02:00
whaffman
b8e3e16f3d refactoring ahndler, and cgihandler start 2025-10-16 17:10:32 +02:00
whaffman
a8dd8a77a5 error response 2025-10-16 14:52:25 +02:00
whaffman
67ab96f9da refactor: add noexcept annotations to getters and observers 2025-10-16 00:54:29 +02:00
Quinten
7432cd154c fix: handle epollhup properly 2025-10-15 20:06:57 +02:00
Quinten
d562c5bcbf feat: CGI 2025-10-15 18:34:42 +02:00
Quinten
e1be8d8aa8 feat(socket): implement callbacks for asynchronous handling of requests and responses 2025-10-15 17:29:22 +02:00
Quinten
0887acd81a feat(config): add new server configuration for site-3 and implement CGI support
feat(site-3): create index.php for site-3 with a greeting message
refactor(client): change setCgiSocket to accept unique_ptr for better memory management
fix(AConfig): adjust getCGIPath to correctly prepend dot to extension
refactor(CgiProcess): update CGI process handling to use unique_ptr for CgiSocket
refactor(URI): enhance logging for CGI checks and improve condition checks
refactor(Router): clean up commented code and add debug logging for CGI process
fix(Server): improve error logging for epoll_ctl failures
2025-10-15 17:03:49 +02:00
Quinten
7134e26f6f refactor: make response async 2025-10-15 15:28:09 +02:00
Quinten
9b7f50cc04 refactor(Client): improve error handling in request method and clean up includes 2025-10-14 19:10:27 +02:00
Quinten
68ea191460 refactor: remove unused Router references from Client and Server classes 2025-10-14 19:02:49 +02:00
whaffman
3a95041815 formating 2025-10-14 18:47:09 +02:00
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
7b6ce8fd67 refactor: optimize compiler options and clean up unused directives 2025-10-07 22:38:00 +02:00
whaffman
010ee3e8b6 moving some files and fixing includes 2025-10-06 15:16:53 +02:00
whaffman
ceab8d7aab fix(client): cast buffer to const char* for receiveData method 2025-10-06 11:32:40 +02:00
Quinten
a89150102c refactor(router): clean up unused functions
refactor(router): make handleRequest static
2025-10-01 20:46:11 +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
1c634ddc02 remove client when it disconnects 2025-09-30 17:18:09 +02:00
Quinten
bd01a172c5 feat: refactor HttpResponse and ErrorHandler for improved response handling and error management 2025-09-30 16:05:08 +02:00
Quinten
be8c5a80b4 feat(http): implement http response class 2025-09-30 15:35:20 +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
949c788259 feat: preliminary error handling with custom error pages and response generation 2025-09-29 17:39:53 +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