rename into tiny_httpd_camlzip

This commit is contained in:
Simon Cruanes 2020-03-25 18:22:48 -04:00
parent 8131c07425
commit a238a2100b
7 changed files with 12 additions and 12 deletions

7
src/camlzip/dune Normal file
View file

@ -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))

View file

@ -1,4 +1,4 @@
(executables
(names echo)
(libraries tiny_httpd tiny_httpd_zlib))
(libraries tiny_httpd tiny_httpd_camlzip))

View file

@ -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")));

View file

@ -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))

View file

@ -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"