Commit graph

418 commits

Author SHA1 Message Date
Simon Cruanes
ac466a8fcb
Merge a56dd0ec65 into 8a8aadfbb0 2025-06-28 19:08:46 +00:00
Simon Cruanes
8a8aadfbb0
doc
Some checks failed
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-06-24 21:13:18 -04:00
Simon Cruanes
9a1343aef7
remove global withlock builder, pass it as argument instead
Some checks failed
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-06-23 10:08:07 -04:00
Simon Cruanes
f10992ec32
feat WS: abstraction for critical section
Some checks failed
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
can be replaced with a proper cooperative lock
2025-06-20 18:03:40 -04:00
Simon Cruanes
0f917ddf72
format
Some checks failed
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-06-06 22:25:48 -04:00
Simon Cruanes
03c3e09f12
feat route: add to_url, to produce a URL path from a route
provide arguments and get the corresponding path, which makes
it easy to build a full URL if needed.
2025-06-06 22:25:01 -04:00
Simon Cruanes
023805232f
fix warnings in C stubs 2025-06-06 22:24:52 -04:00
Simon Cruanes
022a495de3
fix warnings 2025-06-06 22:24:39 -04:00
Simon Cruanes
6203e7a4a7
prepare for 0.19
Some checks failed
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-04-18 09:37:27 -04:00
Simon Cruanes
d7a5cca1d4
feat(headers): set will not reallocate whole list if not needed 2025-04-18 09:37:27 -04:00
Simon Cruanes
173e5fef6e
feat(headers): use case insensitive comparison 2025-04-18 09:37:27 -04:00
Simon Cruanes
94c9239d64
fix(response): do not override "content-length" in raw response
close #92
2025-04-18 09:37:27 -04:00
Simon Cruanes
c55e3a2dfc
feat pool: expose acquire/release 2025-04-18 09:37:27 -04:00
Simon Cruanes
f6daff24c0
prepare for 0.18 2025-04-18 09:37:27 -04:00
Simon Cruanes
44002fc355
detail 2025-03-25 15:01:17 -04:00
Simon Cruanes
075ad0825a
feat: add ?head_middlewares to create 2025-03-19 13:40:49 -04:00
Simon Cruanes
75d90559bd
fix warnings 2025-03-19 13:39:15 -04:00
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
Some checks failed
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
Some checks failed
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
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
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
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
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
b966a9eccc
feat multipart-form: expose content_disposition 2024-12-02 14:56:35 -05:00
Simon Cruanes
a5a06f0159
feat multipart: add helper to parse boundary 2024-12-02 14:45:26 -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
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
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
e199162e1f
fix: also make server socket nonblocking 2024-09-03 15:40:26 -04:00
Simon Cruanes
c43ffb5ff4
feat: add tiny_httpd_moonpool library 2024-09-03 15:16:33 -04:00
Simon Cruanes
de9760d786
format 2024-08-15 09:18:15 -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
9eb3cbfc70
prepare for 0.17 2024-06-20 15:23:51 -04:00
Simon Cruanes
3cdec1c0c7
fix 2024-06-18 17:04:19 -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