Simon Cruanes
16b306c19a
chore: in makefile, compile everything in release mode
2022-04-11 22:24:09 -04:00
Simon Cruanes
eb20b64dc4
fix: description for 401 code
2022-04-11 22:24:09 -04:00
Simon Cruanes
cfa5d660a0
example: add super stupid http auth endpoints to echo.ml
...
the endpoint /protected requires user:foobar login to see the content.
2022-04-11 22:24:09 -04:00
Simon Cruanes
dc0a1f08ac
perf: add a buffer pool to reuse buffers, make ~buf mandatory
...
no more allocation of new buffers for each small thing, new request,
etc. Instead we keep a pool of buffers and use a weak form of RAII to
make sure we recycle them once done.
- add `with_alloc_buf` for the user to do so
- add `alloc_buf_for_stream` to tie buffer's lifetime to a byte
stream, typically for a streaming response.
2022-04-11 22:24:09 -04:00
Simon Cruanes
0b3af5cd6e
feat(echo): add a /quit POST endpoint to terminate
2022-04-11 22:24:08 -04:00
Simon Cruanes
55c9bdd2e0
remove mac OS from CI
2022-04-11 22:23:50 -04:00
Simon Cruanes
830e056b31
fix atomics
2022-03-31 21:28:26 -04:00
Simon Cruanes
d62d5515f1
fix Atomic shims on < 4.12
2022-03-31 21:28:26 -04:00
Simon Cruanes
326e1e2abd
echo: add --pool-size param
2022-03-31 21:28:26 -04:00
Simon Cruanes
700f42a4d1
example(echo): add --pool option to use a thread pool
2022-03-31 21:28:26 -04:00
Simon Cruanes
d68142a161
feat: tiny_httpd_pool library, with a small thread pool implementation
2022-03-31 21:28:25 -04:00
Simon Cruanes
a78c48955b
prepare for 0.12
2022-03-31 08:45:39 -04:00
Simon Cruanes
ad92acbee2
bugfixes in streams
2022-03-31 08:45:39 -04:00
Simon Cruanes
5aa29fb8b5
test: fix expect tests, make them more robust (timeout), correct upload test
2022-03-31 08:45:39 -04:00
Simon Cruanes
dbb384cd82
fix: do not try to download a URL from vfs-pack in test
2022-03-30 16:31:18 -04:00
Simon Cruanes
d4c2482699
examples: fix tests for -p tiny_httpd_camlzip
2022-03-30 16:23:40 -04:00
Simon Cruanes
a4438dbdf6
fix a test for 4.04
2022-03-30 16:23:40 -04:00
Simon Cruanes
4ad8d91f7c
chore: ensure CI runs all tests
2022-03-30 12:55:03 -04:00
Simon Cruanes
5ef3a03d35
chore: ci
2022-03-30 12:55:03 -04:00
Simon Cruanes
91e835ea60
docstrings
2022-03-30 12:55:03 -04:00
Simon Cruanes
02500dfb38
hardcode curly
2022-03-30 12:21:47 -04:00
Simon Cruanes
5f59174087
add html.to_string_l
2022-03-29 16:42:02 -04:00
Simon Cruanes
091f2f7ff2
vendor curly directly, bypass opam
2022-03-29 12:52:57 -04:00
Simon Cruanes
b61c03d379
html: hide some utils in a Helpers_ module
2022-03-19 23:00:42 -04:00
Simon Cruanes
f1831f364e
add dep on seq
2022-03-18 22:12:05 -04:00
Simon Cruanes
4aba0654b0
change api for Html.nary'; better newlines in output
2022-03-18 21:32:11 -04:00
Simon Cruanes
030d71ad72
update test
2022-03-17 23:23:59 -04:00
Simon Cruanes
8f32b67a03
factor code generation; fix bug in dir/
2022-03-17 23:02:01 -04:00
Simon Cruanes
d5c828978d
fixes in dir module
2022-03-17 22:42:36 -04:00
Simon Cruanes
6706589c62
increase test coverage to include vfs and <pre>
2022-03-17 22:35:13 -04:00
Simon Cruanes
7fdb420eb0
fix(html): ensure that <pre> is printed without spurious newlines
2022-03-17 22:34:29 -04:00
Simon Cruanes
efb653a2d6
refactor(dir): use Html module to list directory content
2022-03-17 22:34:10 -04:00
Simon Cruanes
6cf05bc733
doc
2022-03-16 22:52:53 -04:00
Simon Cruanes
5a156490ab
workflow to build dev docs
2022-03-16 22:40:58 -04:00
Simon Cruanes
46cb25e5b8
exercize if_ in a test
2022-03-16 22:38:46 -04:00
Simon Cruanes
b88c8bbda1
improve html combinators, add if_ flag
2022-03-16 22:37:34 -04:00
Simon Cruanes
5c1a7310ee
add regression test for html
2022-03-16 22:27:30 -04:00
Simon Cruanes
b387aa731d
add a HTML module, with codegen to produce the combinators.
2022-03-16 22:26:54 -04:00
Simon Cruanes
533a42a661
details
2022-03-16 20:40:38 -04:00
Simon Cruanes
d5f9eacc81
split code into more modules
2022-03-16 20:40:38 -04:00
Simon Cruanes
c68ec5c2f6
Merge branch 'wip-virtual-dir'
2022-03-15 21:36:51 -04:00
Simon Cruanes
70cf95d906
tweak script
2022-03-08 11:16:16 -05:00
Simon Cruanes
a7f0039903
fix CI
2022-03-04 13:51:07 -05:00
Simon Cruanes
d36011bce6
fake vfs module on non linux
2022-03-04 00:20:49 -05:00
Simon Cruanes
7347f55d14
try to fix CI
2022-03-03 23:23:02 -05:00
Simon Cruanes
fd305b6173
detail
2022-03-03 22:20:15 -05:00
Simon Cruanes
f40320a059
wip: fix CI
2022-03-03 22:19:48 -05:00
Simon Cruanes
6a7164810b
missing option in vfs-pack
2022-03-03 22:16:50 -05:00
Simon Cruanes
93ef8c689a
doc: add section on VFS in the readme
2022-03-03 22:14:59 -05:00
Simon Cruanes
759995b9d5
add a VFS in examples/echo.ml
2022-03-03 22:14:44 -05:00