Commit Graph

262 Commits

Author SHA1 Message Date
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
6028e0c1fe remove compile flags 2025-10-21 13:24:22 +02:00
whaffman
eedb5382ea fix(URI): trim URI before extracting substring for improved path handling 2025-10-20 17:56:56 +02:00
whaffman
8dc20a5715 fix(HttpRequest): add TODO for potential segfault when server does not exist 2025-10-20 17:56:18 +02:00
whaffman
6cf0f73ee4 cookies 2025-10-20 16:15:07 +02:00
whaffman
d1b392d2a2 match index in URI 2025-10-20 15:33:55 +02:00
whaffman
ed04838f0d feat(Cgi Environment) fix(No function used in process can log or print is will print to the std o that is captured) 2025-10-20 15:27:08 +02:00
whaffman
0d57ce4f27 trying to setup tester weird stufffff 2025-10-19 14:22:00 +02:00
whaffman
0c081bbb2c feat: cgi headers: enhance CGI handling with output parsing and buffer management 2025-10-19 13:54:19 +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
3370c53d3e style: format function parameters for better readability 2025-10-16 01:15:38 +02:00
whaffman
377ff71e1e fix: improve error handling for size directive and chunked body parsing 2025-10-16 01:14:54 +02:00
whaffman
67ab96f9da refactor: add noexcept annotations to getters and observers 2025-10-16 00:54:29 +02:00
whaffman
5efc48ff74 probably useless chore: update clang-tidy checks to include noexcept-related rules 2025-10-16 00:39:16 +02:00
whaffman
259d7f1371 more no except and const 2025-10-16 00:38:55 +02:00
Quinten
7432cd154c fix: handle epollhup properly 2025-10-15 20:06:57 +02:00
Quinten
2d6543fb5a refactor(Server): remove unnecessary sleep in run loop 2025-10-15 18:42:01 +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
whaffman
35432729dc refactor(ADirective, HttpHeaders, HttpRequest, Server, Socket): improve code structure and readability 2025-10-14 22:43:02 +02:00
whaffman
9bacc4f8a4 fix(main): correct error logging to standard error output for usage message 2025-10-14 22:20:55 +02:00
whaffman
f172987e63 feat(AConfig, URI): add getCGIPath method and implement CGI check in URI 2025-10-14 22:11:34 +02:00
whaffman
42daf68ee2 refactor(DirectiveValue): add TODO comment for constructor 2025-10-14 22:11:12 +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
b64a41d84f feat: implement CGISocket class for handling CGI communication with non-blocking I/O 2025-10-10 11:03:20 +02:00
whaffman
f8a273ec84 moving docs, log files and iwyu map 2025-10-10 07:56:49 +02:00
whaffman
b43901de1a moved scripts to script folder 2025-10-09 23:13:48 +02:00
whaffman
4614a2d382 moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
whaffman
fc1340ac7f fix: tests update StdoutChannel and logging methods to remove unnecessary parameters 2025-10-09 22:28:08 +02:00
whaffman
9c343d872e remove header, correct filename 2025-10-09 22:22:47 +02:00
whaffman
9faa5a1406 feat: enhance C++ development settings in VSCode configuration 2025-10-09 22:22:07 +02:00
whaffman
cc2ed7af56 fix errors from pedantic 2025-10-09 21:16:42 +02:00
whaffman
5215edbb45 add -Wpedantic and some friends 2025-10-09 21:16:30 +02:00
whaffman
5d3821beaa build all targets parallel 2025-10-09 21:16:11 +02:00
Quinten
20ae0e03dd feat: add getCGIEnvironment method to retrieve CGI environment variables 2025-10-09 18:06:05 +02:00
Quinten
35d17d8fa9 feat: replace URIParser with URI class for improved URI handling 2025-10-09 18:02:21 +02:00
Quinten
0f9fa38d8b feat: add initial TODO list for project tasks 2025-10-09 18:01:02 +02:00
Quinten
c3e5117fcb refactor: uri parser now does parsing 2025-10-09 16:26:31 +02:00
Quinten
6b9ce1dda4 fix: add missing newline and ensure binary operators are placed at the beginning of the line 2025-10-09 16:26:00 +02:00
whaffman
fb84cd09fa feat: implement RequiredDirectivesRule for config validation 2025-10-08 17:23:12 +02:00
whaffman
a0b85774b1 fix: return path 2025-10-08 17:22:03 +02:00