18 Commits

Author SHA1 Message Date
Nayan
613e87ad86 fix memory leaks and unecessary newlines in logs 2025-05-08 22:51:56 -04:00
Nayan
f060c35f7d add file comments 2025-05-08 22:34:36 -04:00
Nayan
b52ce7dd0c add some debug logs 2025-05-08 21:25:26 -04:00
Nayan
e956ef0681 switched over to logging 2025-05-08 21:23:07 -04:00
Nayan
6a17569284 update readme and actually add responses to non-GET requests 2025-05-08 20:07:08 -04:00
Nayan
4e8e22ec61 changes to send headers and body separately which fixes images not sending 2025-05-08 18:32:40 -04:00
Nayan
b12cfd2c17 fix string and pointer bugs to actually send 404 2025-05-08 17:37:23 -04:00
Nayan
ddf6f8812f fix argument mismatches between header and c files 2025-05-08 17:13:03 -04:00
Nayan
779f97ddbb update request handler to use response builder 2025-05-08 17:04:45 -04:00
Nayan
df3efbaf9a add enum for request method for easy switch statements 2025-05-08 00:09:38 -04:00
Nayan
449d9deacc update readme with progress and remove debug statements from request handler 2025-05-07 23:32:55 -04:00
Nayan
54d6d06144 add body extraction and clean up and fix http stuff, in particular add auto_fill content metadata from headers 2025-05-07 23:15:54 -04:00
Nayan
b05595d6a5 clean up request_handler 2025-05-07 22:57:12 -04:00
Nayan
a419e6436d add debug print and fix double free of content type 2025-05-07 22:35:55 -04:00
Nayan
d25b2d0656 separate http parsing into separate function and integrate http_stuff 2025-05-07 18:39:31 -04:00
Nayan
2739b3ae95 start working on proper HTTP parser 2025-05-06 17:54:28 -04:00
Nayan
26937d4aba return filename to client, and add content length to fix indefinite hang bug 2025-05-06 16:57:41 -04:00
Nayan
d5a8e17f60 add request handler for http request and response generation 2025-05-06 16:04:39 -04:00