Simon Cruanes
e177153f10
remove dead comment
2025-03-14 11:12:11 -04:00
Jonah Beckford
1e0bbc7f39
Processing to fix incompatible -O and gcc flags
...
github pages / deploy (push) Has been cancelled
build / build (4.08.x, ubuntu-latest) (push) Has been cancelled
build / build (4.14.x, ubuntu-latest) (push) Has been cancelled
build / build (5.03.x, ubuntu-latest) (push) Has been cancelled
Two changes:
1. Accept BUILD_TINY_HTTPD_OPTLEVEL envvar to adjust the -O<num> level. Defaults to 2. Can be negative to remove it entirely, which fixes errors with MSVC which will bail on incompatible options.
2. Do not use -fPIC with MSVC
2025-02-15 20:06:44 -05:00
Simon Cruanes
1f60d6165d
add content-type header for prometheus endpoint
github pages / deploy (push) Has been cancelled
build / build (4.08.x, ubuntu-latest) (push) Has been cancelled
build / build (4.14.x, ubuntu-latest) (push) Has been cancelled
build / build (5.03.x, ubuntu-latest) (push) Has been cancelled
2025-02-10 20:38:04 -05:00
Simon Cruanes
55eb9c2a2f
fix CI
build / build (4.08.x, ubuntu-latest) (push) Has been cancelled
build / build (4.14.x, ubuntu-latest) (push) Has been cancelled
build / build (5.03.x, ubuntu-latest) (push) Has been cancelled
github pages / deploy (push) Has been cancelled
2025-01-29 22:29:38 -05:00
Simon Cruanes
92999d56e8
typo
2025-01-29 22:25:22 -05:00
Simon Cruanes
09ff4f98ed
fix percent encoding for < 0x10 chars
2024-12-25 11:12:42 -05:00
Simon Cruanes
a86eac85bf
add a HEAD endpoint to echo
2024-12-25 10:59:32 -05:00
Simon Cruanes
1318d46efa
fix percent encoding on control chars
2024-12-06 14:42:17 -05:00
Simon Cruanes
1c61c39172
new flag ?enable_logging to disable regular logs (not debug)
2024-12-04 15:52:32 -05:00
Simon Cruanes
7639acfc19
perf: force a lazy in the branch where it is used
2024-12-04 15:10:57 -05:00
Simon Cruanes
709d1106fa
Merge pull request #93 from c-cube/simon/multipart-form
...
library for multipart form data handling
2024-12-03 10:22:58 -05:00
Simon Cruanes
731dd7de51
add a form to echo.ml for manual testing
2024-12-03 10:13:33 -05:00
Simon Cruanes
9875543192
remove debug line
2024-12-03 09:44:16 -05:00
Simon Cruanes
21c0f7f25d
feat: require \r\n before all boundaries but the first
2024-12-02 15:58:16 -05:00
Simon Cruanes
099777b593
test
2024-12-02 15:49:08 -05:00
Simon Cruanes
0b34c966f7
fix multipart: no \r\n before boundary after all
2024-12-02 15:48:52 -05:00
Simon Cruanes
8f0dac2dfe
missing file
2024-12-02 15:32:08 -05:00
Simon Cruanes
ce6119d456
and tests
2024-12-02 14:56:45 -05:00
Simon Cruanes
b966a9eccc
feat multipart-form: expose content_disposition
2024-12-02 14:56:35 -05:00
Simon Cruanes
66f87b7bda
more tests
2024-12-02 14:45:41 -05:00
Simon Cruanes
a5a06f0159
feat multipart: add helper to parse boundary
2024-12-02 14:45:26 -05:00
Simon Cruanes
3f37161649
test: more tests for multipart form data
2024-12-02 14:19:40 -05:00
Simon Cruanes
c966d1839c
feat multipart: first ok implementation
2024-12-02 14:19:26 -05:00
Simon Cruanes
e1bfe70991
feat headers: expose parsing helper
2024-12-02 14:19:06 -05:00
Simon Cruanes
bde09435b4
more test
2024-12-02 11:48:33 -05:00
Simon Cruanes
2968031e5b
wip: multipart
2024-12-02 11:46:40 -05:00
Simon Cruanes
2413a3028c
wip
2024-12-02 00:23:43 -05:00
Simon Cruanes
26c6a6e8dc
initial port of multipart-form-data
2024-12-01 22:18:06 -05:00
Sam Tombury
b80c5f922f
fix: make check for 'Connection: Upgrade' header case-insensitive
...
Some clients send lowercase 'upgrade' as value (matching typical keep-alive behaviour)
2024-11-07 10:39:45 -05:00
Simon Cruanes
d38eb852f8
fix parsing: stricter checks for CRLF
2024-10-13 20:42:26 -04:00
Simon Cruanes
3dd2a480db
ocamlformat
2024-10-13 20:42:22 -04:00
Simon Cruanes
7028fec2a0
feat response: add pp_with; have pp hide set-cookie headers
...
we don't want to accidentally log cookies, they might contain
credentials or secret tokens.
2024-09-27 15:26:20 -04:00
Simon Cruanes
e341f48ece
chore: try to fix CI
2024-08-15 10:00:17 -04:00
Simon Cruanes
de9760d786
format
2024-08-15 09:18:15 -04:00
Simon Cruanes
0fbfd9df43
chore: add make format
2024-08-15 09:18:07 -04:00
Simon Cruanes
93a30366e1
better error message on IO failure
2024-08-01 10:51:35 -04:00
Simon Cruanes
5130653068
chore build: add more re_export
2024-07-16 10:01:47 -04:00
Simon Cruanes
3e17532495
fix changes
2024-06-24 09:49:33 -04:00
Simon Cruanes
9eb3cbfc70
prepare for 0.17
2024-06-20 15:23:51 -04:00
Simon Cruanes
0b4c28264c
Merge pull request #87 from c-cube/simon/fix-chunk-2024-06-18
...
fix chunking reading
2024-06-20 11:52:08 -04:00
Simon Cruanes
f720a01ed8
fix this damn non determinism test
2024-06-20 11:07:44 -04:00
Simon Cruanes
ee637c7c81
fix test
2024-06-20 09:28:13 -04:00
Simon Cruanes
3cdec1c0c7
fix
2024-06-18 17:04:19 -04:00
Simon Cruanes
4705278c3b
add more tests
2024-06-18 17:04:15 -04:00
Simon Cruanes
b6cd59f084
add tests
2024-06-18 16:47:25 -04:00
Simon Cruanes
199bcff68d
more debug
2024-06-18 16:28:18 -04:00
Simon Cruanes
e8c7d3c879
better error messages
2024-06-18 16:26:15 -04:00
Jonah Beckford
14a48756a8
Do not use sigprocmask on Windows
...
Fixes #85
2024-04-18 11:20:40 -04:00
Simon Cruanes
bc34363f60
expose Bad_req in Server
2024-04-16 14:45:21 -04:00
Simon Cruanes
e5191f0fd7
fix: give the correct code+error if protocol upgrade fails
2024-04-15 15:04:44 -04:00