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
Simon Cruanes
f84b2df97f
vendor curly (for vfs-pack)
2022-03-03 22:14:10 -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
Yawar Amin
cafa2a5420
Show small example of socket activation
...
I wasn't sure how much detail to include, so I kept it on the shorter side and
referred to Poettering's blog post for more details.
2022-02-12 17:04:07 -05:00
Simon Cruanes
4aade13cec
fix tests on non-linux
2022-01-05 08:42:29 -05:00
Simon Cruanes
111e2da3ad
fix test -_-
2022-01-04 09:51:11 -05:00
Simon Cruanes
5b00189e14
use separate ports
2022-01-04 00:31:14 -05:00
Simon Cruanes
3d8e9b0bba
Merge pull request #42 from smorimoto/gha
...
Cleanup GitHub Actions workflow
2022-01-04 00:31:00 -05:00
Sora Morimoto
008eae1236
Cleanup GitHub Actions workflow
...
Signed-off-by: Sora Morimoto <sora@morimoto.io>
2022-01-04 13:54:53 +09:00
Simon Cruanes
0bb7094ef8
doc: update changes
2022-01-01 00:17:18 -05:00
Simon Cruanes
3a7019c7cb
prepare for 0.11
2022-01-01 00:17:18 -05:00
Simon Cruanes
4aaa61f622
add ?get_time_s param to create
2021-12-31 20:43:20 -05:00
Simon Cruanes
e225212dba
more doc
2021-12-20 10:04:09 -05:00
Simon Cruanes
5735f813a5
restore previous behavior for http_of_dir
2021-12-20 09:59:31 -05:00
Simon Cruanes
bf2bf6832d
code cleanup
2021-12-20 09:53:45 -05:00
Simon Cruanes
bfee36572c
Merge pull request #37 from craff/static
...
Add a module to server static files
2021-12-20 09:52:29 -05:00
Simon Cruanes
e1ddb96e7c
Update src/Tiny_httpd_dir.ml
2021-12-20 09:52:23 -05:00
Simon Cruanes
ce4b5f0a11
some small code improvements
2021-12-20 09:49:44 -05:00
craff
fe0da80f2f
Documentation in Tiny_httpd_dir.mli + new dir mode IndexAndLists
2021-12-19 19:30:25 -10:00
craff
7e236058f7
remove mem cache ... not really usefull to gain speed
2021-12-19 00:58:03 -10:00
craff
6dceabdd6c
Revert "use bigstring and map_file"
...
This reverts commit 3067120539 .
2021-12-19 00:54:17 -10:00
craff
f08406c1ae
Revert "close fd correctly"
...
This reverts commit 912c7b1fd7 .
2021-12-19 00:53:54 -10:00
craff
912c7b1fd7
close fd correctly
2021-12-19 00:49:09 -10:00
craff
3067120539
use bigstring and map_file
2021-12-19 00:29:56 -10:00
craff
0a31d09601
added mem_cache
2021-12-17 22:13:31 -10:00
craff
8fc22ff07e
ignore empty string in exact_path
2021-12-17 22:08:01 -10:00
craff
613c9ae7c3
Add a module to server static files
2021-12-17 18:55:06 -10:00
Simon Cruanes
c66b2f20df
Merge pull request #31 from c-cube/keepalive-handle
...
handle keepalive, or its absence
2021-12-17 20:58:41 -05:00
Christophe Raffalli
a5e2e47b17
Also close connection if response's headers contains connection: close ( #33 )
2021-12-16 23:20:44 -05:00
Simon Cruanes
0c94a8aab0
tiny refactor
2021-12-16 23:19:49 -05:00
Simon Cruanes
b684835901
store http version in request, and close connections when needed
...
cases include:
- http 1.0 and no "connection: keep-alive"
- http 1.1 and "connection: close"
2021-12-16 23:19:48 -05:00
Simon Cruanes
fe36acf198
details
2021-12-16 10:54:11 -05:00
Simon Cruanes
b5e50fac59
Merge pull request #27 from c-cube/wip-middleware
...
add middlewares
2021-12-16 10:52:47 -05:00
Simon Cruanes
b7fd8da9a0
Merge pull request #32 from craff/wip-middleware
...
add start time to query, improve stats middleware
2021-12-16 09:12:10 -05:00
craff
51be9c0c8f
real fix in echo!
2021-12-15 20:19:42 -10:00
craff
ffc18a5617
fix in echo
2021-12-15 20:13:32 -10:00
Simon Cruanes
accdb1e0ac
Update src/Tiny_httpd.mli
2021-12-16 00:26:18 -05:00
Simon Cruanes
7b14cbd6a7
rename time into start_time
2021-12-16 00:26:07 -05:00
craff
672e33c827
detailed time in echo example
2021-12-15 18:18:52 -10:00