Commit graph

  • 90f06280c1
    split code into more modules Simon Cruanes 2022-03-15 22:59:34 -04:00
  • c68ec5c2f6
    Merge branch 'wip-virtual-dir' Simon Cruanes 2022-03-15 21:36:51 -04:00
  • 70cf95d906
    tweak script Simon Cruanes 2022-03-08 11:16:16 -05:00
  • a7f0039903
    fix CI wip-virtual-dir Simon Cruanes 2022-03-04 13:51:07 -05:00
  • d36011bce6
    fake vfs module on non linux Simon Cruanes 2022-03-04 00:20:49 -05:00
  • 7347f55d14
    try to fix CI Simon Cruanes 2022-03-03 22:24:20 -05:00
  • fd305b6173
    detail Simon Cruanes 2022-03-03 22:20:15 -05:00
  • f40320a059
    wip: fix CI Simon Cruanes 2022-03-03 22:19:48 -05:00
  • 6a7164810b
    missing option in vfs-pack Simon Cruanes 2022-03-03 22:16:50 -05:00
  • 93ef8c689a
    doc: add section on VFS in the readme Simon Cruanes 2022-03-03 22:14:59 -05:00
  • 759995b9d5
    add a VFS in examples/echo.ml Simon Cruanes 2022-03-03 22:14:44 -05:00
  • f84b2df97f
    vendor curly (for vfs-pack) Simon Cruanes 2022-03-03 22:14:10 -05:00
  • 60d69a99a9
    fixup Simon Cruanes 2022-03-03 22:14:03 -05:00
  • 2a3554c941
    feat: add tiny-httpd-vfs-pack program Simon Cruanes 2022-03-03 22:07:35 -05:00
  • 8aff791a27
    feat: full VFS and embedded FS implementations Simon Cruanes 2022-03-03 22:07:08 -05:00
  • fb1b1f9975
    fix bug in SSE Simon Cruanes 2022-03-03 15:20:14 -05:00
  • 10ade90dfd
    wip Simon Cruanes 2022-03-01 16:59:23 -05:00
  • 0078d91672
    feat: add Tiny_httpd_dir.VFS to emulate file systems Simon Cruanes 2022-03-01 16:53:06 -05:00
  • cdd7df29ac
    prevent Tiny_httpd_dir.config from being built by hand; provide builder Simon Cruanes 2022-03-01 16:24:40 -05:00
  • 105722f6b6
    wip tmp-refactor-2022-02-16 Simon Cruanes 2022-02-16 10:20:51 -05:00
  • cafa2a5420 Show small example of socket activation Yawar Amin 2022-02-12 15:44:42 -05:00
  • 575e85774d
    Show small example of socket activation Yawar Amin 2022-02-12 15:44:42 -05:00
  • 4aade13cec
    fix tests on non-linux v0.11 Simon Cruanes 2022-01-04 20:43:21 -05:00
  • 111e2da3ad
    fix test -_- Simon Cruanes 2022-01-04 09:51:11 -05:00
  • 5b00189e14
    use separate ports Simon Cruanes 2022-01-04 00:30:20 -05:00
  • 3d8e9b0bba
    Merge pull request #42 from smorimoto/gha Simon Cruanes 2022-01-04 00:31:00 -05:00
  • cce0c51409
    use separate ports wip-fix-ci-2022-01-03 Simon Cruanes 2022-01-04 00:30:20 -05:00
  • 008eae1236 Cleanup GitHub Actions workflow Sora Morimoto 2022-01-04 13:54:53 +09:00
  • d993f93561
    ci Simon Cruanes 2022-01-03 22:35:57 -05:00
  • 6edd7b4372
    test dep only on linux Simon Cruanes 2022-01-03 22:01:26 -05:00
  • e4bd279403
    Update main.yml Kate 2022-01-01 20:16:33 +00:00
  • ae0162beda
    Make CI closer to what users would do Kate 2022-01-01 13:37:21 +00:00
  • 0bb7094ef8
    doc: update changes Simon Cruanes 2021-12-31 20:50:51 -05:00
  • 3a7019c7cb
    prepare for 0.11 Simon Cruanes 2021-12-31 20:44:42 -05:00
  • 4aaa61f622
    add ?get_time_s param to create Simon Cruanes 2021-12-31 20:43:20 -05:00
  • 490bb25cda Merge branch 'master' into cookie craff 2021-12-20 07:05:55 -10:00
  • e225212dba
    more doc Simon Cruanes 2021-12-20 10:04:09 -05:00
  • 5735f813a5
    restore previous behavior for http_of_dir Simon Cruanes 2021-12-20 09:59:31 -05:00
  • bf2bf6832d
    code cleanup Simon Cruanes 2021-12-20 09:53:19 -05:00
  • bfee36572c
    Merge pull request #37 from craff/static Simon Cruanes 2021-12-20 09:52:29 -05:00
  • e1ddb96e7c
    Update src/Tiny_httpd_dir.ml Simon Cruanes 2021-12-20 09:52:23 -05:00
  • ce4b5f0a11
    some small code improvements Simon Cruanes 2021-12-20 09:49:44 -05:00
  • 19ab478d9c filter_map is only available in recent Stdlib craff 2021-12-19 22:30:18 -10:00
  • 961eb6af65 unset cookies needs the original value and cookie's key are case sensitive craff 2021-12-19 21:27:32 -10:00
  • 8713cdb893 set-cookie in Headers and not Response craff 2021-12-19 21:07:47 -10:00
  • 6f25c632f1 Use Unix.tm for date craff 2021-12-19 20:59:43 -10:00
  • 1e937a8593 Minimum managment of cookies craff 2021-12-19 20:33:39 -10:00
  • fe0da80f2f Documentation in Tiny_httpd_dir.mli + new dir mode IndexAndLists craff 2021-12-19 19:30:25 -10:00
  • 7e236058f7 remove mem cache ... not really usefull to gain speed craff 2021-12-19 00:58:03 -10:00
  • 6dceabdd6c Revert "use bigstring and map_file" craff 2021-12-19 00:54:17 -10:00
  • f08406c1ae Revert "close fd correctly" craff 2021-12-19 00:53:54 -10:00
  • 912c7b1fd7 close fd correctly craff 2021-12-19 00:49:09 -10:00
  • 3067120539 use bigstring and map_file craff 2021-12-19 00:29:56 -10:00
  • 0a31d09601 added mem_cache craff 2021-12-17 22:13:31 -10:00
  • 8fc22ff07e ignore empty string in exact_path craff 2021-12-17 22:08:01 -10:00
  • 613c9ae7c3 Add a module to server static files craff 2021-12-17 18:55:06 -10:00
  • c66b2f20df
    Merge pull request #31 from c-cube/keepalive-handle Simon Cruanes 2021-12-17 20:58:41 -05:00
  • a5e2e47b17
    Also close connection if response's headers contains connection: close (#33) Christophe Raffalli 2021-12-16 05:54:48 -10:00
  • 0c94a8aab0
    tiny refactor Simon Cruanes 2021-12-12 20:52:23 -05:00
  • b684835901
    store http version in request, and close connections when needed Simon Cruanes 2021-12-12 20:51:45 -05:00
  • fe36acf198
    details Simon Cruanes 2021-12-16 10:54:11 -05:00
  • b5e50fac59
    Merge pull request #27 from c-cube/wip-middleware Simon Cruanes 2021-12-16 10:52:34 -05:00
  • b7fd8da9a0
    Merge pull request #32 from craff/wip-middleware Simon Cruanes 2021-12-16 09:12:10 -05:00
  • 51be9c0c8f real fix in echo! craff 2021-12-15 20:19:42 -10:00
  • ffc18a5617 fix in echo craff 2021-12-15 20:13:32 -10:00
  • accdb1e0ac
    Update src/Tiny_httpd.mli Simon Cruanes 2021-12-16 00:26:18 -05:00
  • 7b14cbd6a7
    rename time into start_time Simon Cruanes 2021-12-16 00:26:07 -05:00
  • 893475734b Also close connection if response's headers contains connection: close craff 2021-12-15 18:39:09 -10:00
  • 672e33c827 detailed time in echo example craff 2021-12-15 18:18:52 -10:00
  • 4770e3e729 Timing start of request craff 2021-12-15 18:14:17 -10:00
  • 7685505f28
    example: update echo to provide a /stats/ endpoint using a middleware Simon Cruanes 2021-12-15 16:27:28 -05:00
  • 1a9b837888
    remove dead code Simon Cruanes 2021-12-15 16:11:07 -05:00
  • 6a3ffdfd9b
    tiny refactor Simon Cruanes 2021-12-12 20:52:23 -05:00
  • a953f0799b
    store http version in request, and close connections when needed Simon Cruanes 2021-12-12 20:51:45 -05:00
  • 5827328993
    feat: add ?middlewares param to create Simon Cruanes 2021-12-11 16:48:16 -05:00
  • e05e8867db
    update test a bit Simon Cruanes 2021-12-11 10:58:53 -05:00
  • 1a88ea7d74
    refactor(zip): compression is now a middleware Simon Cruanes 2021-12-11 10:58:40 -05:00
  • 9e26576740
    breaking: more getter/setters for request/response, change signature Simon Cruanes 2021-12-11 10:57:57 -05:00
  • ba31534551
    feat: pass buf_size in many places, set default buf_size to 16kb Simon Cruanes 2021-12-10 11:43:03 -05:00
  • 0ae9ec4426
    feat(camlzip): change default buffer size to 16kb Simon Cruanes 2021-12-10 11:42:52 -05:00
  • 8655200bd7
    deprecate, add todos Simon Cruanes 2021-12-09 16:45:07 -05:00
  • 6b0000eb6e
    feat: add a notion of Middleware Simon Cruanes 2021-12-09 16:43:47 -05:00
  • 2d2ffc722a
    remove deprecated path handlers based on scanf Simon Cruanes 2021-12-12 17:00:51 -05:00
  • 267d29d6c7
    Merge pull request #30 from craff/master Simon Cruanes 2021-12-12 12:08:01 -05:00
  • 10b64c2a16 put back active_connections craff 2021-12-11 23:50:06 -10:00
  • b539b4f9ba timout using socket options craff 2021-12-11 23:48:27 -10:00
  • 85f64caf87 kill %1 in test is not robust enough craff 2021-12-11 23:27:35 -10:00
  • a130c4ea35 release semaphore in case of exception in accept craff 2021-12-11 23:21:47 -10:00
  • c44620d7a1 in fact release was missing if exception was raised in accept craff 2021-12-11 23:07:06 -10:00
  • b1584c2261 acquire after accept, otherwise loose connection ... DON'T KNOW WHY craff 2021-12-11 22:58:57 -10:00
  • 70c5a627d3 active_connections in mli too craff 2021-12-11 21:20:38 -10:00
  • 4c07bed496 put back active_connections craff 2021-12-11 21:18:55 -10:00
  • beacb64f05 modularisation of output craff 2021-12-11 20:57:20 -10:00
  • 3c33eaaf3e add -f to rm in a test craff 2021-12-11 20:37:06 -10:00
  • 47d9ace8fd add stdlibshims + catch EBADF craff 2021-12-11 20:29:58 -10:00
  • 91ca51ea42 create output buffer for non blocking socket craff 2021-12-11 20:18:39 -10:00
  • 68dde5ac58 Do non blocking write ... not satisfactory yet craff 2021-12-11 19:47:40 -10:00
  • bb74d7d82e Buffer size in of_descr = to socket buffer + EAGAIN=EWOULDBLOCK craff 2021-12-11 18:40:54 -10:00
  • c4cd66c088 Fix tests craff 2021-12-11 18:40:02 -10:00
  • f7ef338ab9 Merge branch 'master' into wip-nonblock craff 2021-12-11 17:17:20 -10:00