Commit graph

  • b468854626
    test: use different ports for each test, run some targets only on linux Simon Cruanes 2021-12-11 16:25:34 -05:00
  • bcce3e22dc
    CI: test only on linux Simon Cruanes 2021-12-11 16:08:16 -05:00
  • b4667e9686
    test: fix production of data file Simon Cruanes 2021-12-11 13:20:18 -05:00
  • 8d1a71e625
    try to use conf-libcurl Simon Cruanes 2021-12-11 11:00:25 -05:00
  • 8813dd64f9
    add test for download Simon Cruanes 2021-12-11 10:18:42 -05:00
  • 69c16b0a5d
    add an upload test Simon Cruanes 2021-12-11 10:14:07 -05:00
  • ed4c731523
    more tests, including a small sse count Simon Cruanes 2021-12-11 10:02:32 -05:00
  • c8982c8836
    move echo from src/examples/ to examples/ Simon Cruanes 2021-12-11 10:02:04 -05:00
  • 89344f46f0
    feat(server-sent): add a close() function Simon Cruanes 2021-12-11 10:01:55 -05:00
  • b5269f5b05
    small test Simon Cruanes 2021-12-11 09:46:33 -05:00
  • dc72dad5db
    revert: remove timeout handling for now Simon Cruanes 2021-12-11 09:30:41 -05:00
  • 4bdca82fce
    wip: try to make non-block read, block write work wip-nonblock Simon Cruanes 2021-12-11 09:29:41 -05:00
  • 6536bfeeb3
    fix: when reading from unix FD, use a loop to handle signals Simon Cruanes 2021-12-11 09:13:16 -05:00
  • f316e66c15
    switch from "available" to "active" connections Simon Cruanes 2021-12-11 09:06:44 -05:00
  • 6dcae7f996
    Merge pull request #23 from craff/master Simon Cruanes 2021-12-11 09:10:22 -05:00
  • b2e571916d
    switch from "available" to "active" connections craff/master Simon Cruanes 2021-12-11 09:06:44 -05:00
  • c3265af08f moved back acquire before accept but inside the try ... with ... one never knowns craff 2021-12-10 12:49:51 -10:00
  • 97eeaf96dc make accessible to the end user the number of available connections craff 2021-12-08 17:54:08 -10:00
  • 9b4a1b1197 remove mutex to get available_connections craff 2021-12-08 17:47:53 -10:00
  • 7e9f3b03dd str is not an opam package craff 2021-12-08 16:45:06 -10:00
  • 8da6967039 Merge branch 'master' of github.com:craff/tiny_httpd craff 2021-12-08 16:41:07 -10:00
  • e87428ae51 release semaphore does not return anything anymore craff 2021-12-08 16:38:59 -10:00
  • 024a774f39
    Update src/Tiny_httpd.mli Christophe Raffalli 2021-12-08 16:25:07 -10:00
  • 6eef2bbb01 catch exception in search_forward and string_match craff 2021-12-08 16:09:16 -10:00
  • da99ea70a9 added thread safe string match craff 2021-12-08 16:07:05 -10:00
  • 004d0d41fa Decode multipart post encoded form + thread safe interface to Str.search_forward craff 2021-12-08 15:57:45 -10:00
  • 9e9fe32347 only set non blocking for reading request, not to write answer craff 2021-12-08 12:07:35 -10:00
  • b394527709
    Merge branch 'c-cube:master' into master Christophe Raffalli 2021-12-08 11:48:58 -10:00
  • 4c7d27dadd Added a max_keep_alive and moved to a non blocking reading of request not to loose connection slot. Default is max_keep_alive = -1.0 which keeps the original behaviour. craff 2021-12-08 11:46:01 -10:00
  • ff70d7df8b
    prepare for 0.10 v0.10 Simon Cruanes 2021-11-30 09:45:27 -05:00
  • ac05b9eaa1
    Merge pull request #22 from craff/master Simon Cruanes 2021-11-30 09:43:22 -05:00
  • a65734e8cc Merge branch 'master' of github.com:craff/tiny_httpd craff 2021-11-29 23:39:33 -10:00
  • 19a4bad231 use _debug and better message craff 2021-11-29 23:38:28 -10:00
  • 50f225638d
    Update src/Tiny_httpd.ml Simon Cruanes 2021-11-29 22:37:19 -05:00
  • 6ccd8314a3 Unix.accept may raise an exception (typicall Unix.EINTR, even with sigpipe blocked ?) This avoids the server to stop craff 2021-11-29 15:35:41 -10:00
  • a58372b9a7
    add a @since Simon Cruanes 2021-09-25 15:35:57 -04:00
  • 70dcf8269a
    Merge pull request #19 from yawaramin/master Simon Cruanes 2021-09-25 15:34:26 -04:00
  • 0e05b8cac6
    Update src/Tiny_httpd.ml Simon Cruanes 2021-09-25 14:41:42 -04:00
  • 8414efc3e0 Adjust implementation Yawar Amin 2021-09-25 02:03:28 -04:00
  • ce61ac2afd feat: allow socket activation Yawar Amin 2021-09-25 01:41:32 -04:00
  • 129e555161 doc for 0.9 Simon Cruanes 2021-07-18 00:10:03 -04:00
  • 9961bd1b29 prepare for 0.9 v0.9 Simon Cruanes 2021-07-18 00:07:43 -04:00
  • 6c810fb0ed readme Simon Cruanes 2021-07-18 00:05:44 -04:00
  • 3848b25aae
    Merge pull request #17 from c-cube/wip-server-sent Simon Cruanes 2021-07-17 22:10:49 -04:00
  • b292664b2e test: expect test for server-send events (linux only) Simon Cruanes 2021-07-17 16:51:19 -04:00
  • 95d9bd10ef fix: do not set content-length for server-sent events Simon Cruanes 2021-07-16 21:14:27 -04:00
  • 62d583553e allow extra headers in server-sent events Simon Cruanes 2021-07-16 10:56:04 -04:00
  • ce552cafdd add some example programs to exercize server-sent events Simon Cruanes 2021-07-16 09:41:49 -04:00
  • 17d8f37c93 feat: remove async for now, finish server sent events Simon Cruanes 2021-07-16 09:00:15 -04:00
  • 2e0f08366f wip: feat: server-sent events, and asynchronous handlers Simon Cruanes 2021-07-16 01:12:39 -04:00
  • 91e9323671 doc Simon Cruanes 2021-07-15 23:47:31 -04:00
  • a3edf75a05 opam fix from @kit_ty_kate Simon Cruanes 2021-06-04 09:32:10 -04:00
  • 19cbda8571 test is only for tiny_httpd v0.8 Simon Cruanes 2021-06-02 21:06:38 -04:00
  • 3068d07df4 add missing opam dep Simon Cruanes 2021-06-02 19:47:17 -04:00
  • 36cf26f7b2 prepare for 0.8 Simon Cruanes 2021-06-02 15:50:05 -04:00
  • 8a914448c9 avoid dune stanza for inline tests Simon Cruanes 2021-06-02 15:39:50 -04:00
  • e5d5f60e67 chore: try to fix CI Simon Cruanes 2021-06-01 10:27:21 -04:00
  • 9d8439b96a chore: bump to ocaml 4.04 Simon Cruanes 2021-06-01 10:25:07 -04:00
  • ff5795c389 workaround for css/js in http_of_dir Simon Cruanes 2021-06-01 09:58:03 -04:00
  • 6b57540b50
    Validate header key's character set (#15) Anurag Soni 2021-05-14 12:10:33 -04:00
  • 13400f0797 address review feedback Anurag Soni 2021-05-13 19:49:28 -04:00
  • da9f01586a Validate header key's character set Anurag Soni 2021-05-12 20:06:48 -04:00
  • 2340cf0bf7 chore: tell dune to stop pestering with warn-error Simon Cruanes 2021-05-03 13:23:56 -04:00
  • ddd337cc61 perf: simpler parsing of headers Simon Cruanes 2021-05-03 12:39:19 -04:00
  • 0138f22826 use 4.08 for ci Simon Cruanes 2021-02-01 11:23:41 -05:00
  • 06ef1fc787 ci stuff Simon Cruanes 2021-02-01 10:50:30 -05:00
  • 07d479c305 chore: try to fix the freakin CI Simon Cruanes 2021-01-27 10:50:38 -05:00
  • 2804b7f3f1 chore: remove travis Simon Cruanes 2021-01-27 10:30:54 -05:00
  • 643d1573df perf: use a thread pool instead wip-thread-pool Simon Cruanes 2021-01-27 10:28:36 -05:00
  • 80e823478f try multicore Anurag Soni 2021-01-25 23:57:57 -05:00
  • 21f4743320 fix(urlencode): encode non ascii chars Simon Cruanes 2020-12-15 22:16:33 -05:00
  • 70f1205880 doc: fix examples Simon Cruanes 2020-12-08 00:24:55 -05:00
  • 697dc6c302 chore: fix constraint on qcheck Simon Cruanes 2020-11-22 12:48:55 -05:00
  • 4f5910f597 add doc for 0.7 Simon Cruanes 2020-11-17 14:33:23 -05:00
  • e267838d23 fix doc Simon Cruanes 2020-11-17 14:32:45 -05:00
  • a35b063d41 prepare for 0.7 0.7 Simon Cruanes 2020-11-17 10:43:48 -05:00
  • 2a955bcbb4 feat: add rest_of_path_urlencoded and rename rest to rest_of_path Simon Cruanes 2020-11-17 10:43:05 -05:00
  • 9dd94b0158 fix: use the request path when redirecting to index.html Simon Cruanes 2020-11-17 09:50:47 -05:00
  • 39671d62e4 feat(http_of_dir): redirect to index.html if present Simon Cruanes 2020-11-17 09:37:05 -05:00
  • c6d5c9a40f fix(http_of_dir): do not url-encode paths with / Simon Cruanes 2020-11-17 09:16:46 -05:00
  • 2ed9131bdc feat: add Route.rest to match the rest of the path Simon Cruanes 2020-11-17 09:16:28 -05:00
  • aa66e172e8 feat: printing routes Simon Cruanes 2020-08-03 21:46:31 -04:00
  • a679ddf1d1 style Simon Cruanes 2020-08-03 21:40:42 -04:00
  • b31800680b add docs for 0.6 Simon Cruanes 2020-05-28 21:17:15 -04:00
  • 13dca59afd fix doc Simon Cruanes 2020-05-28 21:22:21 -04:00
  • 3ac5510e2d prepare for 0.6 0.6 Simon Cruanes 2020-05-28 21:06:19 -04:00
  • 80a4dc3c50 doc: update readme Simon Cruanes 2020-05-28 21:16:30 -04:00
  • 6e54ee69b5 fix: avoid spamming response Simon Cruanes 2020-05-27 22:29:21 -04:00
  • 6d01b5347e fix: do not output a content-length for a chunked response Simon Cruanes 2020-05-27 22:25:13 -04:00
  • fdd97744e0 feat: use chunked encoding for large string responses, too Simon Cruanes 2020-05-27 22:16:36 -04:00
  • 020dd056ac fix(zip) Simon Cruanes 2020-05-27 21:40:38 -04:00
  • bbe8d1c504 refactor(echo): simplify code, use gzip aggressively Simon Cruanes 2020-05-27 21:40:20 -04:00
  • 4f730ec7b6 fix: set transfer-encoding header when returning a chunked stream Simon Cruanes 2020-05-27 21:39:43 -04:00
  • 4a83a2f07f fix(zip): handle case where camlzip consumes 0 bytes Simon Cruanes 2020-05-27 20:41:53 -04:00
  • 4300e8dcf0 feat(gzip): also compress string responses if they're big Simon Cruanes 2020-05-27 20:29:55 -04:00
  • b640c0da30 feat: add Route.t construct, deprecate scanf, add more structured path Simon Cruanes 2020-05-27 19:52:57 -04:00
  • eaa2c9b3b7 accept http1.0 Simon Cruanes 2020-05-27 13:23:02 -04:00
  • 5c56cb7f1e debug msg Simon Cruanes 2020-05-27 13:11:32 -04:00
  • 2da66d0b8d add doc for 0.5 Simon Cruanes 2020-03-25 23:28:33 -04:00
  • 1d309abca6 prepare for 0.5 0.5 Simon Cruanes 2020-03-25 23:25:15 -04:00