this repo has no description
1opam-version: "2.0"
2synopsis: "An OCaml library for HTTP clients and servers"
3description: """
4[](https://gitter.im/mirage/ocaml-cohttp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
6Cohttp is an OCaml library for creating HTTP daemons. It has a portable
7HTTP parser, and implementations using various asynchronous programming
8libraries:
9
10* `Cohttp_lwt_unix` uses the [Lwt](https://ocsigen.org/lwt/) library, and
11 specifically the UNIX bindings.
12* `Cohttp_async` uses the [Async](https://realworldocaml.org/v1/en/html/concurrent-programming-with-async.html)
13 library.
14* `Cohttp_lwt` exposes an OS-independent Lwt interface, which is used
15 by the [Mirage](https://mirage.io/) interface to generate standalone
16 microkernels (use the cohttp-mirage subpackage).
17* `Cohttp_lwt_xhr` compiles to a JavaScript module that maps the Cohttp
18 calls to XMLHTTPRequests. This is used to compile OCaml libraries like
19 the GitHub bindings to JavaScript and still run efficiently.
20
21You can implement other targets using the parser very easily. Look at the `IO`
22signature in `lib/s.mli` and implement that in the desired backend.
23
24You can activate some runtime debugging by setting `COHTTP_DEBUG` to any
25value, and all requests and responses will be written to stderr. Further
26debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG`
27to any value."""
28maintainer: "anil@recoil.org"
29authors: ["Anil Madhavapeddy" "Thomas Gazagnaire"]
30license: "ISC"
31tags: ["org:mirage" "org:xapi-project"]
32homepage: "https://github.com/mirage/ocaml-cohttp"
33doc: "https://mirage.github.io/ocaml-cohttp/"
34bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
35depends: [
36 "ocaml" {>= "4.04.1"}
37 "dune" {>= "1.1.0"}
38 "result"
39 "mirage-flow-lwt" {>= "1.2.0"}
40 "mirage-channel-lwt" {>= "3.0.0"}
41 "conduit" {>= "0.99" & < "2.3.0"}
42 "conduit-lwt" {>= "0.99" & < "2.3.0"}
43 "mirage-conduit" {>= "3.0.0"}
44 "mirage-kv-lwt" {<"2.0.0"}
45 "lwt" {>= "2.4.3"}
46 "cohttp" {>= "1.0.0" & < "2.2.0"}
47 "cohttp-lwt" {>= "1.0.0" & < "2.2.0"}
48 "astring"
49 "magic-mime"
50 "sexplib"
51]
52build: [
53 ["dune" "subst"] {dev}
54 ["dune" "build" "-p" name "-j" jobs]
55 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
56]
57dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
58url {
59 src:
60 "https://github.com/mirage/ocaml-cohttp/releases/download/v1.2.0/cohttp-v1.2.0.tbz"
61 checksum: [
62 "sha256=3f71a5652aeb65c5ca54881ba6fa862a0acfad23f7516e762f6292d444daa942"
63 "md5=7aa3d4582848afff9a62f866b23173e1"
64 ]
65}