Commit graph

509 commits

Author SHA1 Message Date
Simon Cruanes
ee310b5262
fix: description for 401 code 2023-06-20 23:03:29 -04:00
Simon Cruanes
1f61af068b
chore: makefile 2023-06-20 22:45:43 -04:00
Simon Cruanes
ac17e61a81
prepare for 0.13 2023-05-24 16:14:13 -04:00
Simon Cruanes
c2b6ac24f4
fix: unit tests are for tiny_httpd 2023-05-24 16:14:13 -04:00
Simon Cruanes
202ef14f59
doc 2023-05-24 15:42:32 -04:00
Simon Cruanes
163d720641
Merge branch 'ocamlformat' 2023-05-24 15:41:58 -04:00
Simon Cruanes
aa27963c5a
improve docs 2023-05-24 15:39:05 -04:00
Simon Cruanes
88bfb9c109
feat: Server.run takes ?after_init parameter
also use it in http_of_dir to print the actual port.
2023-05-24 15:38:38 -04:00
Simon Cruanes
04fb648576
update docs 2023-05-24 15:21:49 -04:00
Simon Cruanes
82ebf85ee7
remove dep on ounit2 and qtest 2023-05-24 15:13:27 -04:00
Simon Cruanes
61ee931b6c
fix warnings 2023-05-24 15:03:32 -04:00
Simon Cruanes
0908d71e19
ocamlformat 2023-05-23 17:40:18 -04:00
Simon Cruanes
30a355da5a
fix: SSE requires no body 2023-05-23 17:39:19 -04:00
Simon Cruanes
997f7aa868
expose Response.make_void
it only has no body if the http code is compatible with it.
close #62
2023-05-23 17:18:05 -04:00
Stephane Legrand
9c2cf0900d Add OPTIONS method 2023-05-07 20:55:46 -04:00
Simon Cruanes
53032c993e
fix: get addr/port from the current socket 2023-04-03 12:32:13 -04:00
Simon Cruanes
4fdce87dad
Merge pull request #57 from c-cube/fix-56
fix missing closing crlf in chunked streams
2023-02-21 21:14:39 -05:00
Simon Cruanes
e0338e4d59
Merge pull request #58 from craff/patch-3
Update download_chunked.sh
2023-02-21 21:09:44 -05:00
Christophe Raffalli
a5cf4060f3
Update download_chunked.sh
There was a type: Tranfer instead of Transfer and anyway we want Accept. But Accept-encoding is not looked at for chunked.
2023-02-07 16:15:08 -10:00
Simon Cruanes
6f03c521a6
fix missing closing crlf in chunked streams 2023-02-04 23:52:30 -05:00
Simon Cruanes
c81ca48fbd
Merge pull request #55 from craff/close_stream
close stream after Response.output
2023-01-19 00:24:23 -05:00
craff
095487ce85 close stream after Response.output 2023-01-18 17:06:25 -10:00
Simon Cruanes
471810cf70
Merge pull request #49 from craff/use_fd
Use fd
2022-12-13 21:19:11 -05:00
craff
8c7b764b30 forgot to catch Unix_error 2022-12-09 07:36:05 -10:00
craff
462fbd661c use of_fd instead of_chan everywhere 2022-12-09 03:26:44 -10:00
craff
915317438f use directly file descriptor for input to avoid stacking buffers 2022-12-09 03:17:51 -10:00
Christophe Raffalli
b52407ea00 Index seems not to work wirg non empty prefix
Here is a proposed fix ?
2022-12-04 14:10:56 -05:00
Sora Morimoto
a3f27bd3cb Update GitHub Actions workflows
Signed-off-by: Sora Morimoto <sora@morimoto.io>
2022-09-03 14:06:22 -04:00
Simon Cruanes
c8d89e24be
fix(tiny-httpd-vfs-pack): allow redirections when fetching resources 2022-04-09 22:25:58 -04:00
Simon Cruanes
7d74dacbea
add @since 2022-04-08 11:40:14 -04:00
Simon Cruanes
4bf7c267d6
fix: module Html was not exposed 2022-04-02 23:48:42 -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