952808aefc
Minor fixes/cleanup
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s
2024-09-09 13:53:58 +09:00
3bace3286f
Refactor "print request headers"
...
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
Resolves #1
2024-09-09 12:41:15 +09:00
9294108f13
Impl. print of specific headers arg/option
...
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
TODO: Maybe refactor this to use a hash-map or something similar to
speed up the process. If N = number-of-headers-to-print and M =
size-of-request-buffer, then currrently this will take O(N*M) time.
2024-09-06 17:30:37 +09:00
c9c21105f6
Only allow protocol "HTTP/1.1"
Run Unit Tests / build-and-run-unit-tests (push) Successful in 33s
2024-09-06 15:57:46 +09:00
c194555527
Add support for different error responses
2024-09-06 15:55:21 +09:00
42d97e03b3
Remove "?" or "#" starting suffixes from path
...
These suffixes may break loading the correct html template.
2024-09-06 15:33:31 +09:00
9be6ac32bf
Impl. handling HTTP/1.1 requests
...
TODO:
Handle errors other than 404 Not Found.
2024-09-06 11:56:00 +09:00
0b9f0e38f8
WIP some work on http req/response handling
2024-09-02 13:51:10 +09:00
f5507c8412
Move config-related code from http.c to config.c
...
Also make config-related code more generic and improve unit tests of
config parsing.
2024-08-31 16:48:24 +09:00
edffbf0656
Cleanup usage of third-party headers
2024-08-31 14:43:53 +09:00
b4a56a7918
WIP Impl. config file parsing for http templates
...
TODO:
Still need to test "HTML_FILE".
Response to HTTP request.
2024-08-30 18:11:03 +09:00
efd4b39311
WIP html template handling for http response
...
TODO:
Test html template handling so that it works.
Respond to http requests properly.
2024-08-30 14:16:20 +09:00