diff --git a/src/zlib/Tiny_httpd_zlib.ml b/src/camlzip/Tiny_httpd_camlzip.ml similarity index 100% rename from src/zlib/Tiny_httpd_zlib.ml rename to src/camlzip/Tiny_httpd_camlzip.ml diff --git a/src/zlib/Tiny_httpd_zlib.mli b/src/camlzip/Tiny_httpd_camlzip.mli similarity index 100% rename from src/zlib/Tiny_httpd_zlib.mli rename to src/camlzip/Tiny_httpd_camlzip.mli diff --git a/src/camlzip/dune b/src/camlzip/dune new file mode 100644 index 00000000..22927cbd --- /dev/null +++ b/src/camlzip/dune @@ -0,0 +1,7 @@ + +(library + (name tiny_httpd_camlzip) + (public_name tiny_httpd_camlzip) + (synopsis "A wrapper around camlzip to bring compression to Tiny_httpd") + (flags :standard -safe-string -warn-error -a) + (libraries tiny_httpd camlzip)) diff --git a/src/examples/dune b/src/examples/dune index fe122085..d94b8d99 100644 --- a/src/examples/dune +++ b/src/examples/dune @@ -1,4 +1,4 @@ (executables (names echo) - (libraries tiny_httpd tiny_httpd_zlib)) + (libraries tiny_httpd tiny_httpd_camlzip)) diff --git a/src/examples/echo.ml b/src/examples/echo.ml index 3f531685..8dfc85cb 100644 --- a/src/examples/echo.ml +++ b/src/examples/echo.ml @@ -11,7 +11,7 @@ let () = "-j", Arg.Set_int j, " maximum number of connections"; ]) (fun _ -> raise (Arg.Bad "")) "echo [option]*"; let server = S.create ~port:!port_ ~max_connections:!j () in - Tiny_httpd_zlib.setup server; + Tiny_httpd_camlzip.setup server; (* say hello *) S.add_path_handler ~meth:`GET server "/hello/%s@/" (fun name _req -> S.Response.make_string (Ok ("hello " ^name ^"!\n"))); diff --git a/src/zlib/dune b/src/zlib/dune deleted file mode 100644 index 17dc9301..00000000 --- a/src/zlib/dune +++ /dev/null @@ -1,7 +0,0 @@ - -(library - (name tiny_httpd_zlib) - (public_name tiny_httpd_zlib) - (synopsis "A wrapper around zlib to bring compression to Tiny_httpd") - (flags :standard -safe-string -warn-error -a) - (libraries tiny_httpd camlzip)) diff --git a/tiny_httpd_zlib.opam b/tiny_httpd_camlzip.opam similarity index 83% rename from tiny_httpd_zlib.opam rename to tiny_httpd_camlzip.opam index 7ee23dd6..82c93f24 100644 --- a/tiny_httpd_zlib.opam +++ b/tiny_httpd_camlzip.opam @@ -3,7 +3,7 @@ version: "0.1" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" -description: "Interface to gzip for tiny_httpd" +description: "Interface to camlzip for tiny_httpd" build: [ ["dune" "build" "@install" "-p" name "-j" jobs] ["dune" "build" "@doc" "-p" name] {with-doc} @@ -11,12 +11,12 @@ build: [ ] depends: [ "dune" { >= "1.1" } - "decompress" + "camlzip" "tiny_httpd" { = version } "ocaml" { >= "4.03.0" } "odoc" {with-doc} ] -tags: [ "http" "thread" "server" "gzip" "decompress" ] +tags: [ "http" "thread" "server" "gzip" "camlzip" ] homepage: "https://github.com/c-cube/tiny_httpd/" doc: "https://c-cube.github.io/tiny_httpd/" bug-reports: "https://github.com/c-cube/tiny_httpd/issues"