this repo has no description
1opam-version: "2.0"
2synopsis: "Compression support for cohttp-lwt client using decompress"
3description: """
4The library interface tries to stay somewhat close to
5[dream-encoding](https://github.com/tmattio/dream-encoding).
6
7Usage example:
8```ocaml
9let get_with_compression_support ?headers uri =
10 let headers = Clz_cohttp.update_headers headers in
11 let open Lwt.Syntax in
12 let* resp, body = Cohttp_lwt_unix.Client.get ~headers uri in
13 let status = Cohttp_lwt.Response.status resp in
14 let* () = if status <> `OK then Cohttp_lwt.Body.drain_body body else Lwt.return_unit in
15 match status with
16 | `OK ->
17 let body = Clz_cohttp.decompress (resp, body) in
18 Lwt.return body
19 | _ -> Lwt.fail_with "Not Ok"
20```"""
21maintainer: ["marcello.seri@gmail.com"]
22authors: ["Marcello Seri"]
23license: "MIT"
24homepage: "https://github.com/mseri/ocaml-clz"
25doc: "https://mseri.github.io/ocaml-clz"
26bug-reports: "https://github.com/mseri/ocaml-clz/issues"
27depends: [
28 "dune" {>= "2.0"}
29 "ocaml" {>= "4.08"}
30 "bigstringaf" {>= "0.2.0"}
31 "cohttp-lwt" {>= "2.5.0"}
32 "lwt" {>= "5.3.0"}
33 "decompress" {>= "1.4.0"}
34 "ptime" {>= "0.8.0"}
35]
36conflicts: [
37 "result" {< "1.5"}
38]
39build: [
40 ["dune" "subst"] {dev}
41 [
42 "dune"
43 "build"
44 "-p"
45 name
46 "-j"
47 jobs
48 "@install"
49 "@runtest" {with-test}
50 "@doc" {with-doc}
51 ]
52]
53dev-repo: "git+https://github.com/mseri/ocaml-clz.git"
54url {
55 src:
56 "https://github.com/mseri/ocaml-clz/releases/download/0.1.0/clz-0.1.0.tbz"
57 checksum: [
58 "sha256=98e87ae5b0283d866e5a888db59b5d63311c0c683faa0d3bea181cf28ac3c622"
59 "sha512=0fcf11ca574c387102ea642dd124236823eb3f751f93637059ee6ceddb431dda05177d78a467d78b8e7a9210797d97b34322fd941cd7a677d1ac65d1da5068a2"
60 ]
61}
62x-commit-hash: "37a83cc59710850ca3f27dc8e9910bd07a1c0d01"
63x-maintenance-intent: [ "(latest)" ]