Simon Cruanes
ac17e61a81
prepare for 0.13
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
6f03c521a6
fix missing closing crlf in chunked streams
2023-02-04 23:52:30 -05:00
craff
095487ce85
close stream after Response.output
2023-01-18 17:06:25 -10: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
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
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
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
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
b88c8bbda1
improve html combinators, add if_ flag
2022-03-16 22:37:34 -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
fd305b6173
detail
2022-03-03 22:20:15 -05:00
Simon Cruanes
6a7164810b
missing option in vfs-pack
2022-03-03 22:16:50 -05:00
Simon Cruanes
60d69a99a9
fixup
2022-03-03 22:14:03 -05:00
Simon Cruanes
2a3554c941
feat: add tiny-httpd-vfs-pack program
...
this program takes some directories, files, URLs, and produces an OCaml
module with a virtual file system containing the content of these.
This VFS can be served using Tiny_httpd_dir.
2022-03-03 22:07:35 -05:00
Simon Cruanes
8aff791a27
feat: full VFS and embedded FS implementations
2022-03-03 22:07:08 -05:00
Simon Cruanes
fb1b1f9975
fix bug in SSE
2022-03-03 15:20:14 -05:00
Simon Cruanes
10ade90dfd
wip
2022-03-01 16:59:23 -05:00
Simon Cruanes
0078d91672
feat: add Tiny_httpd_dir.VFS to emulate file systems
...
the idea is to be able to serve static content from anything that looks
like a file system, not just a directory. That could be a sqlite
table, or a OCaml file with embedded content, etc.
2022-03-01 16:53:22 -05:00
Simon Cruanes
cdd7df29ac
prevent Tiny_httpd_dir.config from being built by hand; provide builder
2022-03-01 16:24:40 -05:00