cozis
bb753ad8ee
Add support for HTTPS, Windows, and Linux builds to Makefile
2025-11-26 16:10:52 +01:00
cozis
4ca5b67d8e
Add a client example program and move examples to the examples/ folder
2025-11-22 00:13:43 +01:00
cozis
eec1174047
Fix issues that caused the server to hang
2025-11-21 23:57:24 +01:00
Claude and cozis
51d3f84715
Address code review feedback for HTTP client and server
...
Based on code review feedback:
Client improvements:
- Remove redundant capacity check in http_client_get_builder
(already verified num_conns < capacity)
- Fix generation counter - no longer reset to zero when allocating
connections, only incremented on request send
- Add HTTP_Method parameter to http_request_builder_url instead
of hardcoding GET method
- Free connection resources when http_request_builder_send fails
(invalid host mode or socket_connect failure)
Server bug fix:
- Fix ready queue indexing in http_server_next_request
Changed: &server->conns[server->ready_head]
To: &server->conns[server->ready[server->ready_head]]
This bug would have caused incorrect connection retrieval
All changes maintain consistency with the codebase style and
improve robustness of error handling.
2025-11-21 20:37:18 +01:00
cozis
ccdd573e90
Add HTTPS support
2025-11-21 19:52:28 +01:00
cozis
3f76d1827e
Add .gitignore and resolve simple TODOs
2025-11-21 18:39:28 +01:00
cozis
3c2ef70c66
Fix compiler errors
2025-11-21 18:30:35 +01:00
cozis
aab1b8e7b8
Fix more compilation errors
2025-11-21 15:12:32 +01:00
cozis
879dc74e34
First version of the refactor
2025-11-21 12:53:03 +01:00
cozis
17ad7ad383
Add http_match_host and update 060_virtual_hosts_over_https.c
2025-10-17 12:10:35 +02:00
cozis
e26042e2e7
Allowing switching HTTPS builds on/off using the HTTPS Makefile parameter
2025-10-17 11:36:23 +02:00
cozis
a63e68f969
Add support for Transfer-Encoding
2025-07-28 16:32:31 +02:00
cozis
ecf5bedc43
Update README and move files to misc/
2025-07-22 11:30:47 +02:00
cozis
a67d4dea9f
Bug fixes
2025-07-21 23:19:11 +02:00
cozis
5cb3977c3c
Fix windows compilation errors
2025-07-21 12:06:23 +02:00
cozis
acf4746611
Simplify amalgamation script
2025-07-21 02:21:33 +02:00
cozis
c3bfb86707
Fix compiler errors
2025-07-20 23:53:23 +02:00
cozis
1c6c0a75cf
Remove compilation artifacts
2025-07-20 21:25:06 +02:00
cozis
3201eac013
Fix compiler errors
2025-07-20 21:19:58 +02:00
cozis
dba15c946e
Rename http.c/.h to chttp.c/.h and improve amalgamation formatting
2025-07-20 18:33:51 +02:00
cozis
51cae898f8
Rewrite
2025-07-20 16:46:08 +02:00
cozis
af4127bfb7
Add example using the HTTP engine with I/O completion ports
2025-05-13 00:59:24 +02:00
cozis
3def70928f
Add blocking server example with engine
2025-05-13 00:04:53 +02:00
cozis
9b0248fb72
Add simple server example
2025-05-12 22:58:43 +02:00
cozis
f725e63fb0
Add engine tests
2025-05-12 22:23:33 +02:00
cozis
24736bc780
Full rewrite
2025-05-07 23:57:07 +02:00
cozis
82ef7ee170
Improve testing program
2025-04-24 22:00:30 +02:00
cozis
1573d831db
First version of chunk encoding
2025-04-20 19:07:16 +02:00
cozis
a86ded5035
Add tests for connection reuse
2025-04-20 18:01:41 +02:00
cozis
e1dca84a44
Basic test infrastructure
2025-04-20 14:11:52 +02:00
cozis
a4aafb1ee8
Improved documentation and fixed bugs
2025-04-19 16:32:45 +02:00
cozis
08956a84cf
first commit
2025-04-17 02:18:33 +02:00